diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-11 23:14:29 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-11 23:14:29 +0500 |
| commit | 5af7121ef495ce4d04b39da470331dd6421025d9 (patch) | |
| tree | 70663989f25929cc0bde7923e42babdc7f50ea3e /extension.js | |
initial commit
Diffstat (limited to 'extension.js')
| -rw-r--r-- | extension.js | 17 |
1 files changed, 17 insertions, 0 deletions
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); |
