refuse-tieba-app.js

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);});
})();