Greasy Fork

Greasy Fork is available in English.

Go to filtered files tab

Jumps directly to the downloads for the version you have selected when clicking the project card. This really should be what it does anyway

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Go to filtered files tab
// @namespace    crinfarr.io
// @version      2024-07-18_03
// @description  Jumps directly to the downloads for the version you have selected when clicking the project card.  This really should be what it does anyway
// @author       Crinfarr
// @match        https://www.curseforge.com/minecraft/search?*
// @match        https://curseforge.com/minecraft/search?*
// @match        https://www.curseforge.com/minecraft/search
// @match        https://curseforge.com/minecraft/search
// @sandbox      MAIN_WORLD
// @license      none
// ==/UserScript==

(function() {
    'use strict';
    console.log('tampermonkey running');
    let versionselect = document.getElementById('dropdown-selected-item');
    /*let loaderFilters = Array.from(
        Array.from(document.querySelectorAll(".checkboxes-list"))
            .filter((e) => e.previousSibling.innerText == 'Mod Loaders')[0]
        .children[0]
        .children
    ).map((e)=> {
        return e.children[0].children[0]
    });
    console.log(loaderFilters);*/
    for (let objlink of document.querySelectorAll('.overlay-link')) {
        objlink.href = objlink.href+`/files/all?version=${versionselect.value}`;
    }
    const observer = new MutationObserver((records, observer) => {
        for (let record of records) {
            if (record.addedNodes && record.addedNodes[0]?.classList?.contains('results-container')) {
                for (let link of document.querySelectorAll('.overlay-link')) {
                    link.href = `${link.href}/files/all?version=${versionselect.value}`;
                }
            }
        }
    });
    console.log(`starting observer on ${document}`);
    observer.observe(document, {childList: true, subtree: true});
})();