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?

  • This question isn't related to Unix and Linux, it's about configuring your adblocker. I'd suggest asking the developers for help.
    – Panki
    Commented 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
    Commented 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
    Commented Jun 20, 2020 at 19:19

1 Answer 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##:xpath(//span[(text()='Promoted' or text()='Gesponsert' or text()='Реклама' or text()='Promocionado'or text()='Sponsorisé']/../../../../..)

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

  • 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
    Commented Jun 13, 2021 at 1:13

Not the answer you're looking for? Browse other questions tagged .