Greasy Fork

Greasy Fork is available in English.

福利吧好孩子看得见

在福利吧帖子中将隐藏的链接、文字高亮显示

当前为 2018-08-07 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         福利吧好孩子看得见
// @namespace    theliang
// @version      1.3
// @icon        http://www.wnflb.com/static/image/common/agree.gif
// @description  在福利吧帖子中将隐藏的链接、文字高亮显示
// @author       Theliang
// @match        *://www.wnflb.com/thread-*.html
// @match        *://www.wnflb.com/forum.php?mod=viewthread&tid=*
// @require      https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
// ==/UserScript==

(function() {
	$(".t_f font").attr("color", "red");

	$(".t_f a>font").text("好孩子看这!");

	$(".t_f a").each(function() {
		var contains = $(this).text();
		if(contains.length < 2) {
			$(this).html("<font color='red'>好孩子看这!</font>");
		}
	});
})();