Redirect to Google Translator - Forced

Instantaneously redirects you to https://translate.google.com if you search for the word "translator" using your native language.

安装此脚本
作者推荐脚本

您可能也喜欢Redirect to Google Translator

安装此脚本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Redirect to Google Translator - Forced
// @namespace    https://greasyfork.org/en/users/670188-hacker09?sort=daily_installs
// @version      3
// @description  Instantaneously redirects you to https://translate.google.com if you search for the word "translator" using your native language.
// @author       hacker09
// @include      *://www.google.*
// @icon         https://t2.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=https://translate.google.com/&size=64
// @run-at       document-start
// @grant        none
// @noframes
// ==/UserScript==

(function() {
  'use strict';
  if (location.href.match(/tradutor|^.+trad&.+$|translate|translator|traductor/) !== null) //If the url has the words "tradutor" or "trad" or "translate" or "translator" or "traductor"
  { //Starts the if conditon
    window.location.replace("https://translate.google.com"); //Redirect to https://translate.google.com
  } //Finishes the if conditon
})();