"Block an ad on this page" doesn't work on certain sites

Everything about using Adblock Plus on Google Chrome
Locked
apops
Posts: 3
Joined: Wed Nov 08, 2017 4:27 am

"Block an ad on this page" doesn't work on certain sites

Post by apops »

Using "Block an ad on this page" to block a section of a site (not an ad, but for example the Trending box on twitter) -- this works on some sites (like Twitter), but on others (like any Kinja sites - Jalopnik, Gizmodo, Lifehacker etc), trying to block their sidebar or similar will work only until I refresh, and then it's reset. The filter is something as simple as: "jalopnik.com##SECTION[class="sidebar"]", no randomized ID or anything. Anyone know why this is?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: "Block an ad on this page" doesn't work on certain sites

Post by mapx »

provide exact link, steps if you want to be helped
also, you could upload (on imgur.com, provide here the link) a screenshot with you want to hide / block
apops
Posts: 3
Joined: Wed Nov 08, 2017 4:27 am

Re: "Block an ad on this page" doesn't work on certain sites

Post by apops »

Here's a gif screen recording: https://gyazo.com/f74d36470eada5334d8c43d61908b181

Basically: anything on any kinja sites -

Code: Select all

http://www.jalopnik.com, http://www.gizmodo.com, http://www.theonion.com, http://www.deadspin.com
, etc - blocking any elements on them doesn't stick, the blocked elements come right back after a couple seconds (though the filter stays in the adblock settings list - e.g. "theonion.com##DIV[class="priority-nav"]")
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: "Block an ad on this page" doesn't work on certain sites

Post by mapx »

For now nothing to do in ABP due to massive use of !important enforcement by these sites
see (search for !important)

Code: Select all

https://x.kinja-static.com/assets/stylesheets/blog-d28f293f1fdfc04a3b949be87724d72d.css
However, a patch in chrome should fix the issue (will land in the next 2-3 versions)
https://bugs.chromium.org/p/chromium/is ... 009&desc=2
apops
Posts: 3
Joined: Wed Nov 08, 2017 4:27 am

Re: "Block an ad on this page" doesn't work on certain sites

Post by apops »

Ah wonderful! thank you for answering!
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: "Block an ad on this page" doesn't work on certain sites

Post by mapx »

Workaround:

when you create your filter (using "block element) and in the block element window is proposed

Code: Select all

jalopnik.com##.logo
just edit it and add ? :

Code: Select all

jalopnik.com#?#.logo
(meaning you convert a normal hiding filter in a procedural hiding filter which seems to work due to the different internal implementation)
Locked