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?

intika
  • 13,920
  • 7
  • 41
  • 79
400 the Cat
  • 819
  • 4
  • 37
  • 85
  • 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 '20 at 09:16
  • 5
    I’m voting to close this question because it is not about Unix or Linux, but configuring an AdBlocker. – AdminBee Jun 18 '20 at 09:38
  • While it is not Linux related directly, it's not either unrelated as the underlying system is Linux... – intika Jun 20 '20 at 19:19

1 Answers1

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.

intika
  • 13,920
  • 7
  • 41
  • 79
  • 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 '21 at 01:13