Skip to content

Instantly share code, notes, and snippets.

@marron-akanishi
Created July 4, 2023 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marron-akanishi/e9573a6486f51c6f49b99d0fa35ece80 to your computer and use it in GitHub Desktop.
Save marron-akanishi/e9573a6486f51c6f49b99d0fa35ece80 to your computer and use it in GitHub Desktop.
新Deckでツイートパネルを常時表示するやつ
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