您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to XKCD Explained in the navigation toolbar
// ==UserScript== // @name XKCD Explained // @namespace http://www.explainxkcd.com/ // @description Adds a button to XKCD Explained in the navigation toolbar // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html // @include http://xkcd.com/* // @include https://xkcd.com/* // @grant none // @version 1 // ==/UserScript== var comicNumber = parseInt(window.location.pathname.replace(/\//g,'')), comicNavbar = comicNavbar = document.getElementsByClassName('comicNav')[0], previousComicURL, comicUrl, explainNavbar; if(!comicNumber) { previousComicURL = comicNavbar.children[1].firstChild.href; comicNumber = parseInt(previousComicURL.match('[0-9]+')) + 1; } comicUrl = 'http://www.explainxkcd.com/wiki/index.php?title=' + comicNumber; explainNavbar = document.createElement('ul'); explainNavbar.className = 'comicNav'; explainNavbar.innerHTML = '<li><a target="_blank" href="' + comicUrl + '">Explanation</a></li>'; comicNavbar.parentNode.insertBefore(explainNavbar, comicNavbar);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址