Greasy Fork

QQ浏览器主页个性化的搜索模块净化

QQ浏览器自定义主页个性化

目前为 2021-12-05 提交的版本。查看 最新版本

// ==UserScript==
// @name         QQ浏览器主页个性化的搜索模块净化
// @namespace    http://www.baidu.com
// @version      0.3
// @description  QQ浏览器自定义主页个性化
// @author       sanrice
// @match        *://*/*
// @match        https://www.baidu.com
// @grand        none
// @license      End-User License Agreement
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

    $('.qbsbox-panel').remove();
    $('.btn-quick-access').remove();
    $('.btn-favorite-tab').remove();
    $('.s-top-left').remove();
    $('.s_qrcode_nologin').remove();
    $('.s-top-loginbtn').remove();
    //当页面加载状态改变的时候执行function
    document.onreadystatechange = function(){
        if(document.readyState == "complete"){
            setTimeout(function() {
                //当页面加载状态为完全结束时进入
                document.querySelector('input').placeholder = '';
            }, 200);

            setTimeout(function() {
                //当页面加载状态为完全结束时进入
                document.querySelector('input').placeholder = '';
            }, 5000);
        }
    }
})();