Skip to content

Instantly share code, notes, and snippets.

@mimonelu
Last active March 15, 2019 05:24
Show Gist options
  • Save mimonelu/58870dac3ccb49548566b61d4fea98d2 to your computer and use it in GitHub Desktop.
Save mimonelu/58870dac3ccb49548566b61d4fea98d2 to your computer and use it in GitHub Desktop.
🐦ツイート検索ブックマークレット
javascript: (() => { const q = prompt('検索ワードを入力してください。'); if (q) { const a = document.createElement('a'); a.href = `https://twitter.com/search?src=typd&q=${encodeURIComponent(q)}%20from%3Amimonelu&f=live`; a.target = '_blank'; a.click(); } })(); void 0;
@mimonelu
Copy link
Author

mimonelu commented May 1, 2018

任意のワードでツイートを検索するブックマークレット。
最後の mimonelu を Twitter の ID に変えて使ってください。

  • 2019/03/15 window.open() がセキュリティ上の理由からブックマークレットで使えなくなったため、回避策を適用した
  • 2019/03/15 人気のツイートではなく、最新のツイートが表示されるようにした
  • 2018/05/07 ハッシュタグ等が検索できない不具合を修正した(エンコード漏れ)
  • 2018/05/07 入力ダイアログをキャンセルしても検索ページが開く不具合を修正した

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment