Greasy Fork is available in English.

Nexus No Wait

Download from Nexusmods.com without wait and redirect (support Manual/Vortex/MO2/NMM)

< Spätná väzba na Nexus No Wait

Hodnotenie: OK - skript funguje, ale má chyby

§
Pridaný: 14.03.2024
Upravený: 14.03.2024

Archive links don't work for anything but ONE mod on the entire site. XD

That's because both game name and mod id are hardcoded in the extension code. -_-

Here's fixed version of function archivedFile():

    function archivedFile() {
        if (/[?&]category=archived/.test(window.location.href)) {
            const fileIds = document.getElementsByClassName("file-expander-header");
            const elements = document.getElementsByClassName("accordion-downloads");
            const imageCode = (id) => `<svg title="" class="icon ${id}"><use xlink:href="https://www.nexusmods.com/assets/images/icons/icons.svg#${id}"></use></svg>`;
            const path = `${location.protocol}//${location.host}${location.pathname}`;
            for (let i = 0; i < elements.length; i++) {
                elements[i].innerHTML = ''
                    + `<li><a class="btn inline-flex" href="${path}?tab=files&amp;file_id=${fileIds[i].getAttribute("data-id")}&amp;nmm=1" tabindex="0">`
                    + `${imageCode('icon-nmm')} <span class="flex-label">Mod manager download</span></a></li>`
                    + `<li><a class="btn inline-flex" href="${path}?tab=files&amp;file_id=${fileIds[i].getAttribute("data-id")}" tabindex="0">`
                    + `${imageCode('icon-manual')} <span class="flex-label">Manual download</span></a></li>`;
            }
        }
    }

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.