Element hiding not always working (Vivaldi)

Everything about using Adblock Plus on Google Chrome
Post Reply
SirWumpus
Posts: 6
Joined: Wed Apr 03, 2013 12:37 am
Location: Ottawa, Canada
Contact:

Element hiding not always working (Vivaldi)

Post by SirWumpus »

https://vivaldi.com/ 1.4.589.38 (Stable channel) (32-bit) is a Chromium browser using the Chrome Adblock Plus 1.12.4

The filter: ##div[id^="MarketGid"]
The page:

Code: Select all

https://1337x.to/popular-movies
ad-bar bottom of the page (other pages it appears top of page).

This and other filters fail to work in either normal or Incognito windows. In Firefox the same filter and page is correctly filtered.

Anthony Howe
Twitter @SirWumpus


Complete browser version details:

Vivaldi 1.4.589.38 (Stable channel) (32-bit)
Revision afa9b018e32575fcd8f8283755a315804ecf0671
OS Windows
Blink 537.36 (@afa9b018e32575fcd8f8283755a315804ecf0671)
JavaScript V8 5.3.332.47
Flash (Disabled)
User Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.148 Safari/537.36 Vivaldi/1.4.589.38
Command Line "C:\Program Files (x86)\Vivaldi\Application\vivaldi.exe" --always-authorize-plugins --disable-translate --enable-use-zoom-for-dsf=false --flag-switches-begin --flag-switches-end
Executable Path C:\Program Files (x86)\Vivaldi\Application\vivaldi.exe
Profile Path C:\Users\achowe\AppData\Local\Vivaldi\User Data\Default
Compiler MSVC 2015
SirWumpus
Posts: 6
Joined: Wed Apr 03, 2013 12:37 am
Location: Ottawa, Canada
Contact:

Re: Element hiding not always working (Vivaldi)

Post by SirWumpus »

Additional information: I've tested this on two different Windows 7 laptop (home and work) and the same
problem appears in both places.

I've included my custom filters from the work laptop:

Code: Select all

...
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Element hiding not always working (Vivaldi)

Post by mapx »

the webrequest api is different in chrome, so ABP for chrome cannot hide the elements with !important keyword

however, add

Code: Select all

1337x.to##.mgbox
@@||mgid.com$script,domain=1337x.to
at least the pics wont be displayed
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Element hiding not always working (Vivaldi)

Post by mapx »

or a solution using tampermonkey

after tampermonkey installing, add this userscript
https://greasyfork.org/en/scripts/14720 ... -important
SirWumpus
Posts: 6
Joined: Wed Apr 03, 2013 12:37 am
Location: Ottawa, Canada
Contact:

Re: Element hiding not always working (Vivaldi)

Post by SirWumpus »

If the TamperMonkey extension combined with a script can disable !important marked
elements, why can't ABP add the extra support to do the same thing?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Element hiding not always working (Vivaldi)

Post by mapx »

just use that workaround.

use search on forum or bug tracker to know more about !important stuff
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Element hiding not always working (Vivaldi)

Post by lewisje »

mapx wrote:the webrequest api is different in chrome, so ABP for chrome cannot hide the elements with !important keyword
I thought that element-hiding had nothing to do with the inability to hide elements with !important display values in their own style attributes, but rather the problem was in using a style element to inject CSS based on the hiding rules, because !important inside a style element is overridden by !important inside a style attribute.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply