Greasy Fork is available in English.
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.
< Feedback on Vector Layout For Wikipedia
I like this approach. I think it can be simplified somewhat by using more of the Location object's capabilities, along with URLSearchParams:
if( ! document.location.search.includes("useskin=vector") ) { let searchParams= new URLSearchParams(document.location.search); searchParams.append('useskin', 'vector'); document.location= document.location.pathname + "?" + searchParams.toString() + document.location.hash }
Sign in to post a reply.
I like this approach. I think it can be simplified somewhat by using more of the Location object's capabilities, along with URLSearchParams: