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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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});
})();