您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Displays AnandTech articles in print view.
// ==UserScript== // @name AnandTech Print View // @namespace http://elvencraft.com/greasemonkey // @description Displays AnandTech articles in print view. // @match *://*.anandtech.com/* // @run-at document-end // @version 2017.11.16 // Tested using Firefox, Chrome // ==/UserScript== (function () { var links = document.evaluate("//a[contains(@href, '/show/')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var index = 0; index < links.snapshotLength; index++) links.snapshotItem(index).href = links.snapshotItem(index).href .replace('/show/', '/print/'); })();