// ==UserScript== // @name Vector Layout For Wikipedia // @namespace http://tampermonkey.net/ // @version 0.12 // @description This script appends ?useskin=vector to any Wikipedia Wiki page you visit. This returns the site to its old default desktop layout before the 2023 redesign. // @author Ata Sancaktar // @match *://*.wikipedia.org/wiki/* // @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; if(window.location.href.includes("?useskin=vector")===false){ var newURL; if(window.location.href.includes("#")===true){ var prehash = window.location.href.substring(0, window.location.href.indexOf('#')); var posthash = window.location.href.substring(window.location.href.indexOf('#'),window.location.href.length); newURL = prehash + "?useskin=vector" + posthash; window.location.replace (newURL); } else{ newURL = window.location.pathname + "?useskin=vector" window.location.replace (newURL); } } })();