您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects you from Wikipedia to ethical Wikiless.
- // ==UserScript==
- // @name Wikipedia2Wikiless
- // @namespace -
- // @version 1.2.1
- // @description Redirects you from Wikipedia to ethical Wikiless.
- // @author NotYou
- // @run-at document-start
- // @include *://wikipedia.org/*
- // @include *://*.wikipedia.org/*
- // @grant none
- // @license GPL-3.0
- // ==/UserScript==
- var _lang = location.host.split('.')[0]
- var lang = 'lang=' + (_lang === 'www' ? 'en' : _lang)
- location.href = 'https://wikiless.org' + location.pathname + (location.search ? location.search + '&' + lang : '?' + lang)