LoginSignup
0
0

More than 5 years have passed since last update.

Twitterのタイムラインに表示される「いいね」のTweetを非表示にするJSワンライナー

Last updated at Posted at 2017-10-13

読みやすさのために改行してるけど、ワンライナー。

Array.from(document.getElementsByClassName("js-stream-item"))
  .filter(e=>e.getElementsByClassName("Icon--heartBadge").length!==0)
  .forEach(e=>e.style.display="none");

クラス名で絞り込んで最後に非表示にするって感じ。

tweetの一覧を取得 → 「いいね」のtweetを抽出 → 非表示
という具合。

コンソールに貼り付けて実行するか、
Chrome Extension か何か作って定期的に回せばよさそう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0