您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Jumps directly to the downloads for the version you have selected when clicking the project card. This really should be what it does anyway
// ==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}); })();