Greasy Fork is available in English.

tieba page

显示手机版贴吧里被隐藏的楼层与翻页按钮,回贴,顺便拦点儿广告

< 腳本tieba page的回應

評論:正評 - 腳本一切正常

§
發表於:2020-05-06

感觉楼层回复的样式太丑了。。希望可以和这个脚本结合一下!感觉会更好!

http://via-app.cn/#/pluginDetail/18,链接是原作者的链接。这脚本唯一的不足就是不能看原图。但是ui是原生的。感觉比较好看。如果tieba page作者可以结合一下这个。感觉会好看很多。 怕链接打不开,下面是源代码。 /* * @name: 贴吧解除限制 * @Author: Track13 * @version: 1.3.1 * @description: 解除不能看帖的限制,去广告 * @include: tieba.baidu.com * @createTime: 2019-10-18 * @updateTime: 2019-10-25 */ (function () { var whiteList = ['tieba.baidu.com', 'm.tieba.com', 'jump2.bdimg.com', 'tiebac.baidu.com']; if (whiteList.indexOf(window.location.hostname) < 0) { return; }; var key = encodeURIComponent('Track13:贴吧去广告:执行判断'); if (window[key]) { return; }; window[key] = true; var killAD = document.createElement("style"); killAD.type = "text/css"; killAD.innerHTML = ".classhideflag{display:block!important;}.father-cut-pager-class-no-page>#listpager{visibility: visible!important;height: 44px!important;}#glob,body{margin-top: 0px!important;}.fathercutlistclass{padding-bottom: 0px!important;}.father-cut-recommend-normal-box,.footer,.father-cut-daoliu-normal-box,.fixedbar,.pb,.frs,.nomean,.addbodybottom,.imgdesc,.tlshadowforapp,.top-guide-wrap,.open-style,.index-feed-cards .hot-topic,.appPromotewrapper,.uiimageheaderbottom,.videoFooter,#diversBanner,.tb-footer-wrap,.interest-bar,.footer-wrap,.client-btn,.daoliu{display:none!important;}.tlshadow:not([data-tid]),#pblist>li:not([data-tid]){display:none!important;}.navbar-view{top:24px!important;}.navbar-box{top:44px!important;}"; var head = document.getElementsByTagName("head")[0]; head.appendChild(killAD); var oldURL, newURL; function comments() { oldURL = location.search; $("ul#pblist>li").forEach(function (el) { var $el = $(el); var commLoad = el.innerText; if (commLoad.match(/打开APP查看\d+条评论/) && commLoad.indexOf("查看更多回复") == -1) { var tid = $el.attr("tid"); var content = $el.find(".listitemtop"); content.append(<div style="text-align:center;background-color: #eee;margin: 8px 0 0 42px;"><a style="padding:12px;display:block;" href="https://tieba.baidu.com/t/p/${tid}">查看更多回复</a></div><br>); } }); $('.pbfloow_load').hide(); } document.addEventListener("touchstart", function () { newURL = location.search; if (oldURL != newURL) { comments(); } }); })();

fthvgb1作者
§
發表於:2020-05-07

现在去广告的样式代码就是用的这个脚本的,之前有人提供过。 至于现在楼中楼的样式,就是因为原生文字密密麻麻、楼层又不好区分、看得眼睛生疼才改的。要是实在想用的原生的,就删除 969-974与977、978这几行代码吧,都在脚本的最后几行,删除后就是原生的样式了。代码如下

.fr_list .list_item_floor  { padding-top: 8px;
letter-spacing: 1px;
border-radius: 8px;
margin-bottom: 2px
border: 1px solid rgba(0,0,0,.1);
box-shadow: 5px 5px 5px rgba(0,0,0,0.2);}

.fr_list .list_item_floor:nth-child(odd){ background-color:rgba(180, 228, 207, 0.2); }   
.fr_list .list_item_floor:nth-child(even){ background-color:rgba(168, 191, 157, 0.16); } 

当然也可修改成其它好看的样式,欢迎到时反馈回来。

§
發表於:2020-05-07

噢噢。谢谢!!样式的问题搞明白了。。 但是使用过程中还出现了一个问题。某些帖子会失效。 例如:https://tieba.baidu.com/p/6643271752?lp=5028&modevice=1&isjingpost=0&pn=0&

但是使用1L中的那个脚本。就没有问题。

难道需要什么设置嘛? 比如改ua什么的? 我使用的是ios 的alook浏览器。

fthvgb1作者
§
發表於:2020-05-07

这个是处理app分享链接的一个bug ,刚刚修复了。更新下就好了。

發表回覆

登入以回復