Last active
May 19, 2020 21:44
-
-
Save comp500/ada08534f53a92dd3f6ac122ca852f3f to your computer and use it in GitHub Desktop.
Curseforge ASPX error yeeter
This file contains 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 ASPX error yeeter | |
// @version 0.1 | |
// @description Literally never seen this before but here you go | |
// @author comp500 | |
// @namespace https://infra.link/ | |
// @match https://www.curseforge.com/error* | |
// @homepageURL https://github.com/comp500/Curseforge-Userscripts/ | |
// @supportURL https://github.com/comp500/Curseforge-Userscripts/issues/ | |
// @source https://github.com/comp500/Curseforge-Userscripts/hahayes | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let wat = new URLSearchParams(window.location.search).get("aspxerrorpath"); | |
if (wat != null) { | |
window.location.href = window.location.href.replace(/\/error\?.*$/, wat); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment