-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the I don't care about cookies filter to Regions, languages? #909
Comments
That list is quite suboptimal for uBO to say the least, it prefixes all generic cosmetic filters with |
Hi, am am the author/developer of that list. I can't optimize it as suggested, there is a reason why I built it this way. There are quite a few websites that put IDs and classnames (related to cookie warnings) on the body tag itself. If I do as suggested, all of them would appear blank and would need a filter exception. Would entries like #some_id:not(body):not(html) be more acceptable? |
What you are talking about concerns only one entry in your list:
What I am talking about concerns almost all generic cosmetic filter in the list. An example of an entry -- the 1st one:
This means that the target element is a descendant of the
The The only reason I could think the filters were designed this way in your list was that you wanted to augment their specificity maybe to ensure the CSS rule has precedence over a page's own rule. For uBO this is rarely an issue because the filters are inject after the page's own CSS rules are loaded -- so the last CSS rule, which is uBO's one -- wins. When I saw your list yesterday, I thought maybe I could remove the unnecessary |
It is not unnecessary. I think you didn't understand me. There are websites with, ie. body id="one-of generic-selectors" or html id="one-of generic-selectors" and then again inside body they have div id="one-of-generic-selectors". If i remove "body " part from the rule, the page will appear blank. And there are different websites which do that with different generic selectors. How can i avoid these websites turn blank without targeting elements only inside the body? |
Ugh, ok I see. Surely your suggestion of using:
Would work well for uBO, while probably making no difference for ABP and al. For uBO, this would move all those high-high generics into the efficiently-handled low generic category. [corrected selectors] |
If the form |
I can rewrite rules like "body .something" to ".something:not(body):not(html)". Would that be ok then? |
Yes that would work for uBO, all these filters would become low-generic, i.e. efficiently handled. Keep in mind this is not required for cosmetic filters which are to be applied to specific hostnames (.e. Incidentally, I notice you already have some generic filters in there with the form |
i do, because some websites put a div directly into html tag, outside of body, lol. |
@kiboke Any news? |
i prepared it, it will be available in a week probably along with the new "I don't care about cookies" extension version. I'll let you know. |
I had what I think is a good idea for making uBO classifies these cosmetic filters as low generic, and this is probably a better approach, as this removes what may appear as an arbitrary restriction to filter list maintainers. So it's up to you, you may prefer to not go ahead with the change if I can provide a more generic solution in uBO. |
I have already prepared what was needed to be done, it's just not published yet. |
Why it exist 3 lists (maybe more) for block cookies related messages ? |
I agree. I created my own because people asked me to do it. And if I see correctly, my list is waaay better than these two. |
So you could speak at the developpers of the two others lists for merge and share work :) |
In any case, v1.3.6 (dev build available) can now load that filter list without the performance hit of causing thousands of high-high generic cosmetic filters being created. The fix was just to make uBO works a little bit harder to find a class- or id-based part in a whole CSS selector at compile time. This addresses the concern I had here for that specific filter list without the need to change the list. |
It would be even better if uBlock (and others) would filter out possible blocking of body and html, so i don't have to put :not(body):not(html) everywhere. Someone may put, ie, id="Banner728x90" on body itself, god knows why. With uBlock or ABP, the whole page becomes hidden when it really shouldn't be, right? |
@kiboke : Your idea could be useful for other list maintainers. I like it. |
@gorhill, i published the new version. your update certainly helps because some rules still have to have "body > " or "html > " prefix for some special reasons, although most of them have lost it. |
what's exactly broken? On 01.12.2015 12:25, IDKwhattoputhere wrote:
|
A few days ago it completely hid vpnbook.com (like the entire site except the background color). Seems to work now :) (that's why I had deleted my response since I tested again and now don't have any problems anymore). |
Hi @gorhill, I'm not finding any problem, indeed. Best regards and Happy Holidays! |
Given that the author of the list prefers that users use the list through his extension rather than through a blocker[1], I will decline adding it to uBO. I added the list to the "Filter lists from around the web" wiki page though. [1] http://forum.palemoon.org/viewtopic.php?f=46&t=10585#p73651 |
gorhill, it's only logical to use the extension instead of the filterlist (when possible) because the extension should do the task better. the extension is not available for all platforms, that's where the list becomes handy. |
http://www.kiboke-studio.hr/i-dont-care-about-cookies/
Found it in Miscellaneous section of https://adblockplus.org/subscriptions
I don't know much about filters, but it has allot more then prebake. I'm guessing more is better ^_^
The text was updated successfully, but these errors were encountered: