insin / control-panel-for-twitter

Browser extension which gives you more control over your Twitter timeline and adds missing features and UI improvements - available for desktop and mobile browsers
https://jbscript.dev/control-panel-for-twitter
MIT License
1.93k stars 63 forks source link

Hide likes in the Notification tab #142

Open cuducos opened 2 years ago

cuducos commented 2 years ago

First of all, thanks for this amazing plugin!

This is just a simple feature request: is it in the plans to have the option to hide the likes in the Notification tab (so we just see replies and RTs, basically)? Maybe filtering cards (<div>) that have text like liked your Tweet or something? IDK, just suggesting it : )

cuducos commented 2 years ago

I prototyped it in a terrible way because it depends on internationalized text, but it works…

Array.from(document.querySelectorAll('span'))
  .filter((el) => el.textContent.includes("liked your Tweet"))
  .map((el) => el.closest('article').remove())

And the same with the 'liked your Retweet' and 'liked a reply to your Tweet'.

insin commented 1 year ago

Would adding an option to make "Mentions" the default Notifications tab instead of "All" (by clicking it for you as soon as you navigate to /notifications) do the trick?

Filtering content on Twitter is a bit more involved, as we have to keep watching for new content being loaded and hide it in a way which doesn't break the windowing which is used to render infinite lists of content.

cuducos commented 1 year ago

I understand this might be really interesting for many people, however, that's not helpful for me.

One of the most relevant forms of “engagement” I keep track of is RTs. Depending on who retweets something I might take action (usually, if an account of great exposure, let's say +50k followers something I might restrict who can reply to that tweet, or turn off notifications for example).

cuducos commented 1 year ago

Filtering content on Twitter is a bit more involved, as we have to keep watching for new content being loaded and hide it in a way which doesn't break the windowing which is used to render infinite lists of content.

BTW, as a developer, I understand what a challenge this might be. My previous message was just me being the user hahaha… so, please, don't get me wrong. I wasn't dismissing any of the hard work involved in this extension 💜

t4moxjc7 commented 1 year ago

It'd be useful to be able to do this for specific tweets only.