Vector Layout For Wikipedia

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.

< 脚本Vector Layout For Wikipedia的反馈

评价:好评 - 脚本运行良好

§
发表于:2023-01-19

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
  }

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址