Skip to content

Instantly share code, notes, and snippets.

@Beagon
Last active February 9, 2019 16:31
Show Gist options
  • Select an option

  • Save Beagon/b6ba642a0e3778c7facd6baae446626f to your computer and use it in GitHub Desktop.

Select an option

Save Beagon/b6ba642a0e3778c7facd6baae446626f to your computer and use it in GitHub Desktop.
[TamperMonkey] Fandom OSRS wiki to Jagex OSRS wiki
// ==UserScript==
// @name Fandom OSRS Wiki to Jagex OSRS Wiki Converter
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Automatically redirects to the new RuneScape wiki when going to a link of the old one.
// @author Beagon
// @match https://oldschoolrunescape.fandom.com/wiki/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
var currentURL = window.location.href;
var newURL = currentURL.replace("https://oldschoolrunescape.fandom.com/wiki", "https://oldschool.runescape.wiki/w");
window.location.replace(newURL);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment