(Microsoft Rewards) Bing to Google

Changes from Bing to Google

目前为 2024-05-01 提交的版本。查看 最新版本

// ==UserScript==
// @name (Microsoft Rewards) Bing to Google
// @description Changes from Bing to Google
// @include http://*.bing.com/search?*
// @include https://*.bing.com/search?*
// @version 0.0.0.3
// @icon https://rewards.bing.com/rewards.png
// @author JAS1998
// @copyright 2023+ , JAS1998 (https://gf.qytechs.cn/users/4792)
// @namespace https://gf.qytechs.cn/users/4792
// @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
// @compatible Chrome tested with Tampermonkey
// @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
// @run-at document-start
// ==/UserScript==
 
/* jshint esversion: 9 */
 
var referrer = document.referrer;
 
if (!referrer.includes('rewards.bing.com') && !referrer.includes('.bing.com/search?q=')) {
    var googlesearch = "https://google.com/search?" + document.URL.match(/q\=[^&]*/);
    if (googlesearch != document.URL) location.replace(googlesearch);
}

// Neue Funktion: Benachrichtigung anzeigen, wenn eine Umleitung stattfindet
function showRedirectNotification() {
    var notification = document.createElement('div');
    notification.style.position = 'fixed';
    notification.style.bottom = '20px';
    notification.style.right = '20px';
    notification.style.padding = '10px';
    notification.style.backgroundColor = '#f44336';
    notification.style.color = 'white';
    notification.style.zIndex = '10000';
    notification.innerText = 'Umleitung von Bing zu Google...';
    document.body.appendChild(notification);
    setTimeout(function() {
        notification.remove();
    }, 3000);
}

// Rufen Sie die Funktion auf, wenn eine Umleitung stattfindet
if (googlesearch != document.URL) {
    showRedirectNotification();
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址