// ==UserScript== // @name Redirect to Google Translator // @namespace GoogleTranslatorRedirector // @version 0.4 // @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://www.google.com/s2/favicons?domain=https://translate.google.com // @run-at document-end // @grant none // @noframes // @downloadURL none // ==/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', '