refuse-tieba-app.js

显示手机版贴吧里被隐藏的楼层与翻页按钮

  1. // ==UserScript==
  2. // @name refuse-tieba-app.js
  3. // @description 显示手机版贴吧里被隐藏的楼层与翻页按钮
  4. // @namespace https://gist.github.com/godoway/5accb9279396a13457bece071b93d471
  5. // @version 0.1
  6. // @author gwsl
  7. // @match *://tieba.baidu.com/*
  8. // @grant unsafeWindow
  9. // ==/UserScript==
  10.  
  11. function t(){
  12. $("ul#pblist>li").forEach(function(e){
  13. var ee = $(e);
  14. var tid = ee.attr("tid");
  15. var content = ee.find(".list_item_top");
  16. 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>`);
  17. });
  18. }
  19.  
  20. (function() {
  21. $("#pblist").css("padding-bottom","0");
  22. $("#pblist>li[fn]").css("display","block");
  23. $("#pblist>li:not([fn])").remove();
  24. var pager = $("#list_pager");
  25. pager.attr("style","visibility:visible !important");
  26. pager.css("padding","16px 0");
  27. $("#list_pager").height(16);
  28. $(".father_cut_daoliu").css("display","none");
  29. t();
  30. $("#list_pager>a").on("click",function(){setTimeout(t,3000);});
  31. })();
  32.  
  33.  
  34.