Greasy Fork

Greasy Fork is available in English.

百度贴吧域名重定向

将百度贴吧的其他域名重定向至“tieba.baidu.com”。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         百度贴吧域名重定向
// @namespace    http://greasyfork.icu/users/1204387
// @version      0.1.8
// @description  将百度贴吧的其他域名重定向至“tieba.baidu.com”。
// @author       Gentry Deng
// @match        http*://14.215.177.221/*
// @match        http*://182.61.201.157/*
// @match        http*://live.baidu.com/f/*
// @match        http*://live.baidu.com/f?*
// @match        http*://live.baidu.com/home/*
// @match        http*://live.baidu.com/p/*
// @match        http*://nani.baidu.com/*
// @match        http*://c.tieba.baidu.com/*
// @match        http*://*.tieba.baidu.com/f/*
// @match        http*://*.tieba.baidu.com/f?*
// @match        http*://*.tieba.baidu.com/home/*
// @match        http*://*.tieba.baidu.com/p/*
// @match        http*://tiebac.baidu.com/*
// @match        http*://wefan.baidu.com/*
// @match        http*://youhua.baidu.com/*
// @match        http*://jump.bdimg.com/*
// @match        http*://jump*.bdimg.com/*
// @match        http*://www.tieba.com/*
// @exclude      http*://jump*.bdimg.com/safecheck/*
// @icon         https://tb3.bdstatic.com/public/icon/favicon-v2.ico
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    if (location.hostname != "tieba.baidu.com") {
        window.location.hostname = "tieba.baidu.com";
    }
})();