Last active
February 9, 2019 16:31
-
-
Save Beagon/b6ba642a0e3778c7facd6baae446626f to your computer and use it in GitHub Desktop.
[TamperMonkey] Fandom OSRS wiki to Jagex OSRS wiki
This file contains hidden or 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 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