Created
December 30, 2021 16:02
-
-
Save GrzegorzManiak/264d15ea4981dafd808297f026a97319 to your computer and use it in GitHub Desktop.
CurseForge instant download, Skips the 5 sec delay on CurseForge downloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name CurseForge instant download | |
// @namespace https://github.com/GrzegorzManiak | |
// @version 0.1 | |
// @description Skips the 5 sec delay on curseforge downloads | |
// @author Grzegorz Maniak | |
// @match https://www.curseforge.com/* | |
// @icon https://www.google.com/s2/favicons?domain=curseforge.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
[...document.querySelectorAll('a[data-tooltip="Download file"]')].forEach((f, i) => { | |
f.href += '/file'; | |
if(i === 1) document.querySelector('header a[data-tooltip="Download file"]').href = f.href; | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment