你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/394039-nexus-no-wait/discussions/235072,源站連結 點此以跳轉

Nexus No Wait

Skip Countdown (supports Manual/Vortex/MO2/NMM); File archive access; Skip Pop-up;

< 脚本 Nexus No Wait 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于: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>`;
            }
        }
    }

发布留言

登录以发布留言。