Last active
March 9, 2022 01:10
-
-
Save sweepies/58e2244fef9f6b2d14390ab179aff04a to your computer and use it in GitHub Desktop.
RuneScape Wiki Redirector
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 RS Redirector | |
// @description Redirect from Fandom to new RuneScape Wiki | |
// @author Sweepyoface | |
// @run-at document-start | |
// @match *://runescape.wikia.com/* | |
// @match *://runescape.fandom.com/* | |
// ==/UserScript== | |
if (window.location.pathname.startsWith("/wiki/")) { | |
window.location.replace("https://runescape.wiki" + window.location.pathname.replace("/wiki/", "/w/")); | |
} |
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 Old School RS Redirector | |
// @description Redirect from Fandom to new RuneScape Wiki | |
// @author Sweepyoface | |
// @run-at document-start | |
// @match *://oldschoolrunescape.wikia.com/* | |
// @match *://oldschoolrunescape.fandom.com/* | |
// ==/UserScript== | |
if (window.location.pathname.startsWith("/wiki/")) { | |
window.location.replace("https://oldschool.runescape.wiki" + window.location.pathname.replace("/wiki/", "/w/")); | |
} |
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 OSRS to RS3 Redirector | |
// @description Redirect from OSRS to RS3 Wiki | |
// @author Sweepyoface | |
// @run-at document-start | |
// @match *://oldschool.runescape.wiki/* | |
// ==/UserScript== | |
window.location.replace("https://runescape.wiki" + window.location.pathname); |
Hey, could you make a version that works both for OSRS and RS3 wikies? Thanks!
Hey, could you make a version that works both for OSRS and RS3 wikies? Thanks!
I've added a script for OSRS to this Gist. You could simply install them both and it should work :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Click the 'Raw' button in the top right to automatically install this script.