Last active
January 26, 2022 11:46
-
-
Save caioquirino/e468b49e6b4cfe4756e306ca693e51e2 to your computer and use it in GitHub Desktop.
Force allow Google Translate Tampermonkey UserScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Force Allow Google Translate | |
// @namespace https://gist.github.com/caioquirino/e468b49e6b4cfe4756e306ca693e51e2 | |
// @version 0.1 | |
// @description This script removes the translate="no" property from websites so they could be translated | |
// @author Caio Quirino | |
// @match https://www.thuisbezorgd.nl/* | |
// @match https://www.ubereats.com/* | |
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(function () { | |
document.querySelector("html").translate="yes" | |
document.querySelector("body").classList.remove("notranslate") | |
}, 100); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment