您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Makes twinkly sand more visible by inverting color
// ==UserScript== // @name KoL beach combing twinkly sand // @namespace http://tampermonkey.net/ // @version 0.1 // @description Makes twinkly sand more visible by inverting color // @author PeKaJe // @include http://127.0.0.1:60080/choice.php // @include http://localhost:60080/choice.php // @include https://*.kingdomeofloathing.com/choice.php // @grant none // ==/UserScript== function xpath(query) { return document.evaluate(query, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); } (function() { 'use strict'; var result = xpath('//img[@title="rough sand with a twinkle" and contains(@src,"tsand")]'); for(var i = 0; i < result.snapshotLength; i++) { var img = result.snapshotItem(i); img.style.filter = "invert(100%)"; } })();