Hiding Spam with uBlock Origins

Published: 21 January 2024
on channel: IppSec
10,208
615

My uBlock Rule by the end of the video, definitely change the bad words:
! Twitter Bad Words
twitter.com##[data-testid="cellInnerDiv"]:has-text(/ the | and | or /i)
! Discover more / More Tweets - Conversation view suggestions
twitter.com##[aria-label="Timeline: Conversation"] [data-testid="cellInnerDiv"] h2:has-text(/^(Discover more|More Tweets)$/):upward([data-testid="cellInnerDiv"])
twitter.com##[aria-label="Timeline: Conversation"] [data-testid="cellInnerDiv"] h2:has-text(/^(Discover more|More Tweets)$/):upward([data-testid="cellInnerDiv"])~div

The reddit post, not tweet lol: https://www.reddit.com/r/uBlockOrigin...

Github Page: https://github.com/gorhill/uBlock/wik...

00:00 - Introduction talking about why I block it on the browser not platform.
01:00 - Creating the rule to hide tweets that contain words
02:00 - Discovering we didn't filter words, but strings. So "the" would block "therefore", since the is a substring.
02:59 - Making it case insensitive
03:30 - Showing where the data-testid came from
04:20 - Showing some more filters, showing the reddit post not tweet (lol)


Watch video Hiding Spam with uBlock Origins online without registration, duration hours minute second in high quality. This video was added by user IppSec 21 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,208 once and liked it 615 people.