您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Instead of using the small translator on https://google.com get redirected to https://translate.google.com
// ==UserScript== // @name Redirect to Google Translator // @namespace GoogleTranslatorRedirector // @version 7 // @description Instead of using the small translator on https://google.com get redirected to https://translate.google.com // @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=32 // @run-at document-end // @grant none // @noframes // ==/UserScript== (function() { 'use strict'; if (document.querySelector("#tw-main") !== null) // If the small translator widget exists on the page { //Starts the if conditon var Redirect = setTimeout(function() { //Starts the settimeout function window.open('https://translate.google.com', '_self'); //Redirect to google translate }, 3000); //Redirect to https://translate.google.com in 3 secs document.body.insertAdjacentHTML('beforeend', '<div id="Redirect" style="width: 100vw; height: 100vh; z-index: 2147483647; background: rgb(0 0 0 / 36%); position: fixed; top: 0px; font-size: 50px; color: white;"><center>You\'ve 3 secs to click Anywhere if you don\'t want to be redirected</center></div>'); //Show an option to the user document.querySelector("#Redirect").onclick = function() { //If anywhere is clicked clearTimeout(Redirect); //Stop the redirecting process document.querySelector("#Redirect").style.display = 'none'; //Hide the option } //Stop the redirection if the user clicks anywhere } //Finishes the if conditon })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址