refuse-tieba-app.js

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

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         refuse-tieba-app.js
// @description  显示手机版贴吧里被隐藏的楼层与翻页按钮
// @namespace    https://gist.github.com/godoway/5accb9279396a13457bece071b93d471
// @version      0.1
// @author       gwsl
// @match        *://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);});
})();