Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Warframe Wiki Redirect
- // @description Redirects Warframe Fandom wiki URLs to the new official wiki
- // @match https://warframe.fandom.com/wiki/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=warframe.com
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- (function() {
- 'use strict';
- // Get current path and parameters
- const currentPath = window.location.pathname;
- const params = window.location.search;
- const hash = window.location.hash;
- // Only process paths that start with /wiki/
- if (currentPath.startsWith('/wiki/')) {
- // Extract the article path (remove '/wiki/' prefix)
- const articlePath = currentPath.slice(6);
- // Build new URL
- const newUrl = `https://wiki.warframe.com/w/${articlePath}${params}${hash}`;
- // Perform redirect
- window.location.replace(newUrl);
- }
- })();
Add Comment
Please, Sign In to add comment