Created
July 4, 2023 14:56
-
-
Save marron-akanishi/e9573a6486f51c6f49b99d0fa35ece80 to your computer and use it in GitHub Desktop.
新Deckでツイートパネルを常時表示するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(() => { | |
const tweetButton = document.querySelector("div[aria-label='ツイートする']"); | |
const observer = new MutationObserver(() => { | |
if (tweetButton.getAttribute('aria-disabled') !== 'true') tweetButton.click(); | |
}); | |
observer.observe(tweetButton, {attributes: true}); | |
tweetButton.click(); | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment