谷歌图片hk重定向

识图用,防止Google图片跳转到带有安全过滤的hk,也防止某些hk运营商会将图片重定向到cn

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         谷歌图片hk重定向
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  识图用,防止Google图片跳转到带有安全过滤的hk,也防止某些hk运营商会将图片重定向到cn
// @author       青青
// @include      http://www.google.com.hk/imghp*
// @include      https://www.google.com.hk/imghp*
// @include      http://www.google.cn/imghp*
// @include      https://www.google.cn/imghp*
// @include      http://www.google.com.hk/search*
// @include      https://www.google.com.hk/search*
// @run-at       document-start
// ==/UserScript==
document.location.href = document.location.href.replace('www.google.com.hk/imghp','www.google.com/imghp').replace('www.google.com.hk/search','www.google.com/search').replace('www.google.cn/imghp','www.google.com/imghp');