Skip to content

Instantly share code, notes, and snippets.

@EverfreeFaerie
Created January 19, 2023 17:51
Show Gist options
  • Save EverfreeFaerie/759ebf17d8562ab7720a1f2715efd760 to your computer and use it in GitHub Desktop.
Save EverfreeFaerie/759ebf17d8562ab7720a1f2715efd760 to your computer and use it in GitHub Desktop.
Fix Wikipedia's design "improvements"
// ==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