0

Using Debian 10 with Chromium along with uBlock Origin and uMatrix extensions.

On Twitter, advertisement as promoted content are not blocked, How can we block such content with uBlock/uMatrix or any other underlying Linux's solution?

3
  • This question isn't related to Unix and Linux, it's about configuring your adblocker. I'd suggest asking the developers for help.
    – Panki
    Jun 18, 2020 at 9:16
  • 5
    I’m voting to close this question because it is not about Unix or Linux, but configuring an AdBlocker.
    – AdminBee
    Jun 18, 2020 at 9:38
  • While it is not Linux related directly, it's not either unrelated as the underlying system is Linux...
    – intika
    Jun 20, 2020 at 19:19

1 Answer 1

1

uBlock Origin may be used with custom filter to block Twitter's Ads, here are some documentation/links on how to achieve that

Link-1, link-2, link-3 and link-4... you may for instance try adding the following on the custom filter list of uBlock Origin

twitter.com##.trends.Trends.module
twitter.com##.dashboard-right.dashboard
twitter.com##.module.DashboardProfileCard
!twitter.com##article:has-text(/Promoted|Gesponsert|Реклама|Promocionado|Sponsorisé/):xpath(../..)
twitter.com##:xpath(//span[(text()='Promoted' or text()='Gesponsert' or text()='Реклама' or text()='Promocionado'or text()='Sponsorisé']/../../../../..)
twitter.com##[data-testid="trend"]:has-text(/Promoted|Gesponsert|Реклама|Promocionado|Sponsorisé/):xpath(..)

Other additional filter may be added, this is provided as an example.

1
  • I had to add one closing paren to the second to last line to get this to work. I only see English Twitter, so I took out the other languages, and the commented out section.
    – Michael
    Jun 13, 2021 at 1:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.