Skip to content

Instantly share code, notes, and snippets.

@comp500
Last active May 19, 2020 21:44
Show Gist options
  • Save comp500/ada08534f53a92dd3f6ac122ca852f3f to your computer and use it in GitHub Desktop.
Save comp500/ada08534f53a92dd3f6ac122ca852f3f to your computer and use it in GitHub Desktop.
Curseforge ASPX error yeeter
// ==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