您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces all the occurenes de of "The cloud" with "My Butt".
当前为
// ==UserScript== // @name Clout to Butt // @namespace cloud-to-butt // @include * // @description Replaces all the occurenes de of "The cloud" with "My Butt". // @version 1 // @grant none // ==/UserScript== walk(document.body); function walk(node) { // I stole this function from here: // http://is.gd/mwZp7E var child, next; switch ( node.nodeType ) { case 1: // Element case 9: // Document case 11: // Document fragment child = node.firstChild; while ( child ) { next = child.nextSibling; walk(child); child = next; } break; case 3: // Text node handleText(node); break; } } function handleText(textNode) { var v = textNode.nodeValue; v = v.replace(/\bThe Cloud\b/g, "My Butt"); v = v.replace(/\bThe cloud\b/g, "My butt"); v = v.replace(/\bthe Cloud\b/g, "my Butt"); v = v.replace(/\bthe cloud\b/g, "my butt"); textNode.nodeValue = v; }