Created
April 29, 2025 03:47
-
-
Save PhoenixAceVFX/f434db766dbd69fca5fd74c661a90f67 to your computer and use it in GitHub Desktop.
Tampermonkey | Redirect old Warframe Wiki to new Warframe 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 Warframe Wiki Redirect | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Automatically redirects from old Warframe Wiki to new Warframe Wiki | |
// @author PhoenixAceVFX | |
// @match https://warframe.fandom.com/wiki/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Get the current URL path | |
const currentPath = window.location.pathname; | |
// Extract the page name from the path | |
const pageName = currentPath.split('/wiki/')[1]; | |
if (pageName) { | |
// Create the new URL with the same page name | |
const newUrl = 'https://wiki.warframe.com/w/' + pageName; | |
// Redirect to the new URL | |
window.location.replace(newUrl); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment