Googler Redirect (neura-neura fork)

Automatically redirects Bing, Daum, and Yahoo search results to Google.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           Googler Redirect (neura-neura fork)
// @description    Automatically redirects Bing, Daum, and Yahoo search results to Google.
// @namespace      https://github.com/neura-neura/userscripts
// @version        2025.11.11
// @author         neura-neura
// @license        MIT
// @icon           https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://www.google.com
// @match          *://*.bing.com/search?*
// @match          *://search.daum.net/search?*
// @match          *://search.yahoo.com/search?*
// @run-at         document-start
// ==/UserScript==

/*
 * Googler Redirect (neura-neura fork)
 * Redirects search queries from Bing, Daum, and Yahoo to Google Search.
 *
 * Original author: ndaesik (https://update.greasyfork.org/scripts/437239/Googler.user.js)
 * Modified and maintained by neura-neura.
 * License: MIT
 */

(function() {
    'use strict';
    try {
        // Extract the search query parameter (?q= or ?p=)
        const query = document.URL.split(/[?|&](?:q|p)=/)[1]?.split('&')[0];
        if (query) {
            const decoded = decodeURIComponent(query);
            location.replace('https://www.google.com/search?q=' + decoded);
        }
    } catch (e) {
        console.error('Googler Redirect (neura-neura fork) error:', e);
    }
})();