From 5af7121ef495ce4d04b39da470331dd6421025d9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 11 Dec 2025 23:14:29 +0500 Subject: initial commit --- extension.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extension.js (limited to 'extension.js') diff --git a/extension.js b/extension.js new file mode 100644 index 0000000..f910541 --- /dev/null +++ b/extension.js @@ -0,0 +1,17 @@ +const start = () => { + // if there is no chat + if (document.querySelector("div[data-a-target=chat-input]") == null) { + return; + } + console.log(getChannelName()); +}; + +function onPageReady(cb) { + if (document.readyState === 'complete' || document.readyState === 'interactive') { + cb(); + } else { + document.addEventListener("DOMContentLoaded", db); + } +} + +onPageReady(start); -- cgit v1.2.3