您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Link to Wikiwand page on Wikipedia (so you don’t need the Wikiwand plug-in)
当前为
// ==UserScript== // @name Lightweight Wikiwand // @namespace https://franklinyu.name // @description Link to Wikiwand page on Wikipedia (so you don’t need the Wikiwand plug-in) // @match https://*.wikipedia.org/* // @match https://*.wikipedia.org/w/index.php?* // @grant none // @version 0.0.1.20180214052754 // ==/UserScript== const lang = location.host.split('.')[0]; let title, lang_var; if (location.pathname === '/w/index.php') { title = new URLSearchParams(location.search).get('title'); lang_var = null; } else { const path_segments = location.pathname.split('/'); title = path_segments.slice(2).join('/'); if (path_segments[1] === 'wiki') lang_var = null; else lang_var = path_segments[1]; } const anchor = document.createElement('a'); anchor.href = `https://www.wikiwand.com/${lang_var || lang}/${title}`; const image = document.createElement('img'); image.src = 'https://upload.wikimedia.org/wikipedia/commons/4/4e/WikiWand_Logo.png'; image.id = 'wikiwand-image'; anchor.appendChild(image); document.getElementById('firstHeading').prepend(anchor); const style = document.createElement('style'); style.type = 'text/css'; style.appendChild(document.createTextNode('#wikiwand-image { width: 2em; }')); document.head.appendChild(style);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址