Greasy Fork

Greasy Fork is available in English.

bing自动转跳[简化chrometana Pro]

bing自动转跳,重构 chrometana Pro.crx 的代码

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         bing自动转跳[简化chrometana Pro]
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  bing自动转跳,重构 chrometana Pro.crx 的代码
// @author       白水
// @match        https://cn.bing.com/search?*
// @run-at       document-start
// @icon         https://cn.bing.com/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //var getUrl = window.location.href
    //window.location.href = "about:blank"
    //if(window.location.href.includes("https://cn.bing.com/search?"))
    //{
        //window.location.href = ""
        /* 案例
        var str = document.getElementById("demo").innerHTML;
        var txt = str.replace(/microsoft/i,"W3Schools");
        document.getElementById("demo").innerHTML = txt;
        */
   //var nextUrl = getUrl.replace(/cn.bing.com/i,"www.google.com");
   //window.location.href = nextUrl;
   window.location.host = "www.google.com";//也可以实现不保存历史
   //window.location.replace = nextUrl;//不保存历史
    //}
})();