您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show hidden comment surprises for the dailywtf
// ==UserScript== // @name TheDailyWTF // @namespace http://local.host/I.Dont.Wanna.Post.One // @version 0.5 // @description Show hidden comment surprises for the dailywtf // @match http://thedailywtf.com/articles/* // @copyright 2014+, Milton Zurita // ==/UserScript== if(jQuery) { var style="color:green;background:#CCFFCC;margin:2px;font-size:0.65em;" var lookFor='.article-body'; var regEx = /<\!--(.+)-->/g $(window).load(function(){ var target = $(lookFor); var result = $(lookFor).html().replace(regEx,'<span style="'+style+'">\$1</span>'); target.html(result); }); }