Greasy Fork is available in English.

百度知道美化

展开所有回答并居中显示

Від 12.05.2020. Дивіться остання версія.

// ==UserScript==
// @name         百度知道美化
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  展开所有回答并居中显示
// @author       AN drew
// @match        https://zhidao.baidu.com/*
// @require      https://code.jquery.com/jquery-3.1.1.min.js
// @grant        none
// ==/UserScript==


(function() {
    var interval =setInterval((function(){
        $(".wgt-best-showbtn").click()
        $(".wgt-answers-showbtn").click()
        $(".replyask-extandup-btn").click()
        if($(".expend").get(0)!=null && $(".expend").hasClass("expend_hide")==false)
            $(".expend").get(0).click()
    }),1000)

    setTimeout(() => {
        $(window).scrollTop(0);
        clearInterval(interval)
    }, 1000);

    $("#show-answer-hide").click()
    $(".bannerdown").hide()
    $("#qb-side").hide()
    $(".wgt-ads").hide()
    $(".task-list-button").hide()
    $(".jump-goto-star").hide()
    $(".exp-topwld-tip").hide()
    $(".question-number-text-chain").hide()
    $("#answer-bar.exp-answerbtn-yh").append("<style>#answer-bar.exp-answerbtn-yh::after{background:none}</style>");
    $(".wgt-bottom-union").hide()
    $(".line.qb-section").attr("style","display:flex;justify-content:center;align-items:center;");
    $(".aside.fixheight").hide()
    $(".wgt-bottom-ask").remove()
    setInterval((function(){
        $("#footer").attr("style","margin:0px 0px 20px 0px; padding:0px")
    }),1)

})();