Greasy Fork is available in English.

Nexus No Wait

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

< Rückmeldungen auf Nexus No Wait

Rezension: OK - Skript funktioniert, hat aber Fehler

§
Veröffentlicht: 14.03.2024
Bearbeitet: 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>`;
            }
        }
    }

Antwort schreiben

Anmelden um eine Antwort zu senden.