您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces God with GabeN :) based on /u/killeri404's Console-to-Potato script
当前为
// ==UserScript== // @name God-to-GabeN // @namespace /u/alien_from_Europa // @version 3 // @description Replaces God with GabeN :) based on /u/killeri404's Console-to-Potato script // @copyright /r/pcmasterrace // @include * // ==/UserScript== (function() { var replacements, regex, key, textnodes, node, s; textnodes = document.evaluate( "//body//text()", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (var i = 0; i < textnodes.snapshotLength; i++) { node = textnodes.snapshotItem(i); if(node != null && node.nodeName == '#text' && /\S/.test(node.nodeValue)) { s = node.data; s = s.replace( /\bgod\b/g, "GabeN"); s = s.replace( /\bGod\b/g, "GabeN"); node.data = s;