Page 1 of 1

Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 12:48 pm
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

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 1:02 pm
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

...

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 1:02 pm
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

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 1:05 pm
by mapx
or a solution using tampermonkey

after tampermonkey installing, add this userscript
https://greasyfork.org/en/scripts/14720 ... -important

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 1:23 pm
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?

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 2:07 pm
by mapx
just use that workaround.

use search on forum or bug tracker to know more about !important stuff

Re: Element hiding not always working (Vivaldi)

Posted: Fri Nov 04, 2016 2:32 pm
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.