您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces all occurrences of the word 'Trump' inside an HTML textarea element with 'Trump the Liar'.
// ==UserScript== // @name Trump the Liar // @description Replaces all occurrences of the word 'Trump' inside an HTML textarea element with 'Trump the Liar'. // @grant none // @include * // @version 0.0.1.20200410142025 // @namespace https://greasyfork.org/users/500580 // ==/UserScript== // Replaces all occurrences of the word 'Trump' inside an HTML // textarea element with 'Trump the Liar'. // // Add this to a Greasemonkey script or a bookmarklet or some such. e=document.getElementsByTagName('textarea'); for (var i = 0; i < e.length; i++) { e[i].onblur = myReplacer; e[i].onclick = myReplacer; function myReplacer() { this.value = this.value.replace(/Trump the Liar|Trump/gi, 'Trump the Liar'); }; }