Skip to content

Instantly share code, notes, and snippets.

@caioquirino
Last active January 26, 2022 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioquirino/e468b49e6b4cfe4756e306ca693e51e2 to your computer and use it in GitHub Desktop.
Save caioquirino/e468b49e6b4cfe4756e306ca693e51e2 to your computer and use it in GitHub Desktop.
Force allow Google Translate Tampermonkey UserScript
// ==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