// ==UserScript== // @name Skribbl - Quality of Life // @namespace null // @version 0.1 // @description Quality of life improvements for Skribbl.io // @author 4TSOS // @match http*://skribbl.io/* // @run-at document-idle // @icon https://www.google.com/s2/favicons?sz=64&domain=skribbl.io // @downloadURL none // ==/UserScript== (function() { 'use strict'; document.title = "Skribbl.io"; const globalObserver = new MutationObserver(function(mutation) { if (document.querySelector("#inputChat")) { document.body.addEventListener('keydown', function(event) { if (document.querySelector("#inputName")) { document.querySelector("#inputChat").focus(); } }); }; if (document.querySelector("#inputName")) { document.body.addEventListener('keydown', function(event) { if (document.querySelector("#inputName")) { document.querySelector("#inputName").focus(); } }); }; }); globalObserver.observe(document.body, {childList: true, attributes: true, subtree: true}); })();