Opera Custom Block Lists
-
rajarunachala last edited by
Hi,
I am using Opera 39.0 stable on my MBP running OSX 10.11.5. I have created a simple Custom Block list file by exporting my Custom Filters from ABP which looks like this -
[Adblock Plus 2.0] thehindu.com##div[class="custom_widget"] thehindu.com##div[class="mainrow second"] youtube.com##div[class="feed-container"] thehindu.com##div[class="poll_container"] thehindu.com##div[class="crosspub"]
When I add this to the Opera Custom Block list, it parses the file correctly and accepts it. However, the filters don't seem to apply. Could there be a problem with the syntax of the file. Does Opera recognize EasyList format?
Any help in this matter is greatly appreciated.
Thanks
-
kmielczarczyk Opera last edited by
For now on we do not support tag names from attribute selectors and advanced selectors.
You can try using ##.class_name and see if that works, e.g. thehindu.com##.custom_widget -
rajarunachala last edited by
Thanks! That works!
The basic element hiding rules listed here - https://adblockplus.org/filters#elemhide_basic seem to work. With the exception of tags. If a tag such as div is specified then the rule stops working.
I have converted my custom filters to remove all tags.
There is virtually no documentation about this anywhere. Not even in the release notes! It would be great if a manual for the general syntax is specified online somewhere for advanced users. Users who are unaware might just port their ABP custom filters, hoping that they would work. An online conversion facility to transform filters in other syntax to Opera syntax would also be useful.
Thanks again.