Last active
September 13, 2022 05:37
-
-
Save logonoff/c353cd4d132374ee52ae096cc0e74f64 to your computer and use it in GitHub Desktop.
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 Continue Anyway, please? | |
// @namespace https://logonoff.co | |
// @match https://remotedesktop.google.com/unsupported-browser/ | |
// @match http://remotedesktop.google.com/unsupported-browser/ | |
// @match https://www.remotedesktop.google.com/unsupported-browser/ | |
// @match http://www.remotedesktop.google.com/unsupported-browser/ | |
// @grant none | |
// @version 1.1.1 | |
// @author logonoff | |
// @description Auto-click "Continue Anyway" on Chrome Remote Desktop when on the unsupported browser page | |
// @update-url https://raw.githubusercontent.com/logonoff/userscripts/main/continueanywayplease.user.js | |
// @download-url https://raw.githubusercontent.com/logonoff/userscripts/main/continueanywayplease.user.js | |
// @run-at document-idle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
/** | |
* Scans all span elements for a "Continue Anyway" button and clicks it | |
*/ | |
const task = setInterval(function() { | |
Array.from(document.getElementsByTagName("span")).forEach(function(elem) { | |
if (elem.innerHTML === "Continue Anyway") { | |
elem.click(); | |
clearTimeout(task); | |
} | |
}); | |
}, 300); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment