Google Autocorrect Blocker

Googleの検索語句自動訂正を無効化します。

目前為 2016-02-05 提交的版本,檢視 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @author      たかだか。(TakaDaka.)
// @name        Google Autocorrect Blocker
// @name:en        Google Autocorrect Blocker
// @namespace   https://twitter.com/djtkdk_086969
// @description Googleの検索語句自動訂正を無効化します。
// @description:en Disables Google Search Autocorrect.
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @include     *://*.google.*/*
// @exclude     *tbm=shop*
// @exclude     *tbm=isch*
// @exclude     *tbm=vid*
// @exclude     *://plus.*
// @exclude     *://mail.*
// @exclude     *://productforums.*
// @exclude     *://maps.*
// @version     0.0.0.003
// @grant       none
// ==/UserScript==

(function() {
    console.log("GAB: Started.");
    //console.log("GAB: At " + location.href);
    if($("p.sp_cnt > a.spell_orig").length > 0) {
        console.log("GAB: Autocorrect detected!");
        var current_url_split = location.href.split("/");
        var autocorrect_orig_url = $("p.sp_cnt > a.spell_orig:first").attr("href");
        var new_url = current_url_split[0] + "//" + current_url_split[2] + autocorrect_orig_url;
        //alert("GAB: Autocorrect detected! Redirecting to " + new_url);
        location.href = new_url;
        return;
    }
})();