Skip to content

Instantly share code, notes, and snippets.

@sweepies
Last active March 9, 2022 01:10
Show Gist options
  • Save sweepies/58e2244fef9f6b2d14390ab179aff04a to your computer and use it in GitHub Desktop.
Save sweepies/58e2244fef9f6b2d14390ab179aff04a to your computer and use it in GitHub Desktop.
RuneScape Wiki Redirector
// ==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/"));
}
// ==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/"));
}
// ==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);
@sweepies
Copy link
Author

sweepies commented Oct 5, 2018

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