百度贴吧重定向

重定向其他百度贴吧域名到tieba.baidu.com

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           百度贴吧重定向
// @version        1.2
// @author         火心
// @description    重定向其他百度贴吧域名到tieba.baidu.com
// @compatible     chrome

// @include        http://tieba.baidu.com.cn/*
// @include        http://tieba.baidu.cn/*
// @include        http://c.tieba.baidu.com/*
// @include        http://xingqu.baidu.com/*
// @include        http://v.tieba.com/*
// @include        http://v.tieba.baidu.com/*
// @include        http://1111.baidu.com/*
// @include        http://post.baidu.*
// @include        http://www.tieba.com/*
// @include        https://wapp.baidu.com/*
// @include        https://wefan.baidu.com/*
// @include        https://jump2.bdimg.com/*
// @include        http://anfudianshang.com/*


// @run-at         document-start

// @namespace https://greasyfork.org/users/319402

// ==/UserScript==

if (window.location.host = "anfudianshang.com"){
window.location.href = window.location.href.replace('anfudianshang.com/tieba_baidu_', 'tieba.baidu.com')
}
 else{
     window.location.host = "tieba.baidu.com"
 }