Lemvor

lemon

目前为 2021-03-10 提交的版本。查看 最新版本

// ==UserScript==
// @name         Lemvor
// @version      0.0.4
// @namespace    github.com/gmiclotte
// @description  lemon
// @author       GMiclotte
// @match        https://*.melvoridle.com/*
// @exclude      https://wiki.melvoridle.com*
// @noframes
// ==/UserScript==

function script() {
    let lemon = getItemMedia(CONSTANTS.item.Lemon);
    items.forEach(x=>x.media=lemon);
    PETS.forEach(x=>x.media=lemon);
    MONSTERS.forEach(x=>x.media=lemon);
    PRAYER.forEach(x=>x.media=lemon);
    SPELLS.forEach(x=>x.media=lemon);
    ANCIENT.forEach(x=>x.media=lemon);
    AURORAS.forEach(x=>x.media=lemon);
    CURSES.forEach(x=>x.media=lemon);
    for (let i = 0; i < 21; i++) {
        SKILLS[i].media = lemon;
    }
    document.getElementsByTagName('img').forEach(img=>{
        img.src = lemon;
    });
}

(function () {
    function injectScript(main) {
        const scriptElement = document.createElement('script');
        scriptElement.textContent = `try {(${main})();} catch (e) {console.log(e);}`;
        document.body.appendChild(scriptElement).parentNode.removeChild(scriptElement);
    }

    function loadScript() {
        if ((window.isLoaded && !window.currentlyCatchingUp)
            || (typeof unsafeWindow !== 'undefined' && unsafeWindow.isLoaded && !unsafeWindow.currentlyCatchingUp)) {
            // Only load script after game has opened
            clearInterval(scriptLoader);
            injectScript(script);
        }
    }

    const scriptLoader = setInterval(loadScript, 200);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址