A-A+
无需登陆 查看 飞客茶馆-信用卡论坛-m.flyertea.com 油猴脚本

【注意:此文章为博主原创文章!转载需注意,请带原文链接,至少也要是txt格式!】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | // ==UserScript==
// @name 飞客茶馆-信用卡论坛-m.flyertea.com
// @namespace http://tampermonkey.net/
// @version 1
// @description 自动展开阅读+去广告+自动展示评论。
// @author shrimp
// @match *://m.flyertea.com/*
// @match *://www.flyertea.com/*
// @grant none
// @icon https://woj.app/wp-content/themes/Ality/img/favicon.ico
// @run-at document-end
// ==/UserScript==
var bbsInterval = 3000; // 在ADBlock之后运行
(function() {
'use strict';
setTimeout(function () {
//jq("div[class^='post_message firstpost']").css("max-height","100%");
jq("div[class^='post_message firstpost']").css("max-height","").css("overflow",""); //显示楼主所有内容
jq("div[class^='comiis_vrx']").css("display",""); //显示所有评论
//jq("div[class^='tip tip_4 aimg_tip']").css("display",""); //显示附件
//document.getElementsByClassName("lookMore")[0].remove(); = jq(".lookMore").hide();
jq("div[id^='artMain']").css("max-height","100%"); //显示所有评论
jq(".lookMore").hide();
jq(".mb20").hide();
jq("#comiis_replydiv").hide();
//document.getElementById("comiis_replydiv").remove(); = jq("#comiis_replydiv").hide();
}, bbsInterval);
// Your code here...
//下面的其实可以不用的。
jq(function() { //未登录状态下,判断评论条数
var commentList = jq(".comiis_width").find(".comiis_vrx"); //评论
if (commentList.length > 15) { //只显示前三条评论
jq(commentList).hide();
for (var i = 0; i < 15; i++) {
jq(commentList[i]).show();
}
}
})
})(); |
布施恩德可便相知重
微信扫一扫打赏
支付宝扫一扫打赏