Created
January 19, 2023 17:51
-
-
Save EverfreeFaerie/759ebf17d8562ab7720a1f2715efd760 to your computer and use it in GitHub Desktop.
Fix Wikipedia's design "improvements"
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 Fix Wikipedia's design "improvements" | |
// @namespace http://wikipedia.org/ | |
// @version 1.1 | |
// @description https://www.mediawiki.org/wiki/Talk:Reading/Web/Desktop_Improvements | |
// @author Thunderbolt/EverfreeFaerie | |
// @match https://*.wikipedia.org/* | |
// @match https://*.mediawiki.org/* | |
// @match https://*.wikimedia.org/* | |
// @icon https://en.wikipedia.org/static/apple-touch/wikipedia.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const theGoodStuff = 'useskin=vector' | |
let str = window.location.href.split('#') | |
if (str[0].indexOf(theGoodStuff) === -1) { | |
if (str[0].indexOf('?') === -1) { | |
str[0] += '?'; | |
} | |
else { | |
str[0] += '&'; | |
} | |
str[0] += theGoodStuff; | |
history.replaceState(null, null, str.join('#')); | |
window.location.reload(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment