Last active
May 8, 2024 03:56
-
-
Save hkitago/3c7e974581e963522009e9e66183856a to your computer and use it in GitHub Desktop.
Bookmarklet to search on X
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
javascript:(()=>{w=window,d=document,t=(w.getSelection?w.getSelection():d.getSelection?d.getSelection():d.selection.createRange().text);if(!t||t==''){void(t=prompt('X search word:',''))}if(t){w.open(`https://twitter.com/search?q=${encodeURIComponent(t)}`)}})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment