Last active
September 26, 2019 09:47
-
-
Save godoway/5accb9279396a13457bece071b93d471 to your computer and use it in GitHub Desktop.
显示手机百度贴吧的翻页按钮和楼层回复按钮
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name tieba page | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author gwsl | |
| // @match https://tieba.baidu.com/* | |
| // @grant unsafeWindow | |
| // ==/UserScript== | |
| function t(){ | |
| $("ul#pblist>li").forEach(function(e){ | |
| var ee = $(e); | |
| var tid = ee.attr("tid"); | |
| var content = ee.find(".list_item_top"); | |
| 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>`); | |
| }); | |
| } | |
| (function() { | |
| $("#pblist").css("padding-bottom","0"); | |
| $("#pblist>li[fn]").css("display","block"); | |
| $("#pblist>li:not([fn])").remove(); | |
| var pager = $("#list_pager"); | |
| pager.attr("style","visibility:visible !important"); | |
| pager.css("padding","16px 0"); | |
| $("#list_pager").height(16); | |
| $(".father_cut_daoliu").css("display","none"); | |
| t(); | |
| $("#list_pager>a").on("click",function(){setTimeout(t,3000);}); | |
| })(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment