Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Compared to Amazon search ads, Googles are trivial to block. But I think that in both cases as well as with Facebook newsfeed ads, cosmetic filters are the way to go anyway.

Those add css properties to page elements that make the element disappear. Here is an example for advanced cosmetic filter options: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#...

edit: nvm my amazon comment. I spent the last hour vaguely understanding xpath to create a filter for (German) Amazon sponsored search results.

    amazon.de##:xpath(//*[@id="s-results-list-atf"]/li/div[1]/div[1]/div[1]/div[2]/h5[text()="Gesponsert"]/../../../../..)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: