Skip to content

Instantly share code, notes, and snippets.

@overflowy
Created June 11, 2023 10:46
Show Gist options
  • Save overflowy/04bc671ac778d63051815ff5394eff2a to your computer and use it in GitHub Desktop.
Save overflowy/04bc671ac778d63051815ff5394eff2a to your computer and use it in GitHub Desktop.
Automatically select GUI-Mode when opening a Hetnzer console
// ==UserScript==
// @name hetzner-gui
// @namespace Violentmonkey Scripts
// @match https://console.hetzner.cloud/console/*
// @grant none
// @version 1.0
// @author overflowy@riseup.net
// @description 11/06/2023, 12:15:51
// ==/UserScript==
const waitForCheckbox = setInterval(() => {
const checkboxInput = document.querySelector(".hc-checkbox-icon");
if (checkboxInput) {
checkboxInput.click();
clearInterval(waitForCheckbox);
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment