Skip to content

Instantly share code, notes, and snippets.

@logonoff
Last active September 13, 2022 05:37
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 logonoff/c353cd4d132374ee52ae096cc0e74f64 to your computer and use it in GitHub Desktop.
Save logonoff/c353cd4d132374ee52ae096cc0e74f64 to your computer and use it in GitHub Desktop.
// ==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