Nexus No Wait

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

< Feedback on Nexus No Wait

Review: ياخشى - قوليازما ئىشلەيدۇ، بىراق خاتالىق بار

§
يوللانغان ۋاقتى: 2024-03-14
تەھرىرلەنگەن ۋاقتى: 2024-03-14

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>`;
            }
        }
    }

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.