Greasy Fork 支持简体中文。

再也不见吧百度

强制戒断习惯性百度

// ==UserScript==
// @name         再也不见吧百度
// @namespace    https://blog.wangmao.me/
// @version      0.2
// @description  强制戒断习惯性百度
// @author       Secret
// @match        www.baidu.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // overwrite docment
    document.write(``);
    // trying Google
    var image = new Image();
    image.src = `https://www.google.com/favicon.ico`;
    // if google's icon can load, the location redirection google
    image.onload = function(){
        window.location.href = `https://www.google.com/`;
    };
    // if timeout, the location redirection dogedoge
    setTimeout(function(){
        window.location.href = `https://www.dogedoge.com/`;
    }, 1000);
})();