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, duration hours minute second in high quality that is uploaded to the channel IppSec 21 January 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 10,208 times and liked it 615 visitors.