Code: Select all
##a
#@#a[href*="adblockplus"]
Code: Select all
##a
#@#a[href*="adblockplus"]
Code: Select all
adblockplus.org##a
adblockplus.org#@#a[href*="adblockplus"]
Code: Select all
videofun.me#@#.textad
Code: Select all
~videofun.me##.textad
Do you mean the links at the top of this page ("Adblock Plus Homepage", "Board index", etc.)? Right-click one of them and choose Inspect Element. Note that their href attribute doesn't contain adblockplus. Therefore, the exception rule doesn't match, and the elements in question are hidden.auserofabp wrote:The result is that all links are hidden even if their href contains "adblockplus". It's as if the second rule weren't there. Am I doing something wrong, or is this a bug?
Code: Select all
##a:not([href*="adblockplus"])
That filter issue is supposed to have been fixed in EasyList several days ago. Manually update your filter lists. If the problem persists, post a link to the problematic page in the thread you mentioned.Jett wrote:To fix the problem highlighted in this thread:
forum/viewtopic.php?f=2&t=16441
That filter means, "block elements with the class textad, except on the videofun.me domain". It doesn't affect other filters, meaning ##.textad from EasyList will still hide matching elements on all sites.Jett wrote:doesn't work any better :/Code: Select all
~videofun.me##.textad
Yes, that's exactly what I wanted to do, keep hiding .textad on every single site except videofun. The current workaround for that issue is to disable ##.textad, so I wanted to fine tune it but it doesn't work. ##.TextAd with caps isn't triggered, it's ##.textad only.That filter means, "block elements with the class textad, except on the videofun.me domain". It doesn't affect other filters, meaning ##.TextAd from EasyList will still hide matching elements on all sites.
I can't seem to reproduce that anymore. Or put another way, I can reproduce the bug. I've tried various other rules with the same result whether they're general or domain-specific, tag-based, ID-based, class-based or attribute-based. Fresh profile with Adblock Plus 2.3.Gingerbread Man wrote:Links inside posts in threads, like "http://adblockplus.org" in your original post, do however, and they weren't hidden when I tested your filters.
Code: Select all
##img
#@#img[src]
Code: Select all
##img:not([src])
I don't see any problem with the whitelist filter being applied there.Jett wrote:I posted a sample link in the other thread as you asked.
Code: Select all
videofun.me#@#.textad
Code: Select all
~videofun.me##.textad
Code: Select all
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("videofun.me") {
.textad {
display: block !important;
position: absolute !important;
top: 0px !important;
left: 0px !important;
background: red !important;
min-width: 200px !important;
width: 200px !important;
max-width: 200px !important;
min-height: 50px !important;
height: 50px !important;
max-height: 50px !important;
}
.textad:after {
content: 'div class="' attr(class)'"' !important;
font: 12pt Arial !important;
}
}
Well, the problem is that when I disable ##.textad in EasyList (with no custom filter), fullscreen works.I don't see any problem with the whitelist filter being applied there.
That's a false assumption. The user style above just makes the .textad element visible, for the sake of troubleshooting. The site sets it to be displayed out of view with height and width 5px and top and left -10px; the user style overrides this.Jett wrote:We already know when it is hidden by checking if going fullscreen fails. (Then either it is hidden or inexistent)
Code: Select all
$(document).ready(function() {
$("body").append("<div class='ad ads textad' style='position: absolute; top:-10px; left: -10px;width:5px;height: 5px;'></div>");
var $ad = $(".textad");
adblock_detected = ($ad.length==0 || $ad.is(":hidden") );
});