kaeptmblaubaer1000 / Skip CurseForge download wait

// ==UserScript==
// @name         Skip CurseForge download wait
// @namespace    https://openuserjs.org/users/kaeptmblaubaer1000
// @version      0.3
// @description  Skips the new waiting page for downloads introduced by the new CurseForge update
// @author       kb1000
// @match        https://www.curseforge.com/*
// @grant        none
// @copyright    2019, kb1000 (https://openuserjs.org/users/kaeptmblaubaer1000)
// @license      Apache-2.0
// ==/UserScript==

// ==OpenUserJS==
// @author       kaeptmblaubaer1000
// ==/OpenUserJS==

(function() {
    'use strict';

    var thingies = document.getElementsByTagName("a");
    var re = /https:\/\/(www.)?curseforge.com\/[a-zA-Z\-]*\/[a-zA-Z\-]*\/[a-zA-Z\-]*\/download\/[0-9]*/;
    for (var i = 0; i < thingies.length; i++) {
        var thingy = thingies[i];
        var url = thingy.href;
        if (url.match(re)) {
            thingy.href += "/file";
        }
    }
})();