-
Notifications
You must be signed in to change notification settings - Fork 28
Privileged third-party filters list registration #331
base: master
Are you sure you want to change the base?
Conversation
Please provide the following, they are for the assets manifest.
|
I've tried to provide those things now. |
Hum... The home page should be your homepage / homepage you created for your filter. Same for support URL. |
Also note that privileged script snippets will not work at all in uBO. |
In case you want to do small bits of polish on this pull request yourself, I have ensured that the Allow edits from maintainers button is turned on for you to be able to do so. 🙂 |
I've now tested privileged filters in uBO in Vivaldi, Chromium (the base version), Firefox for Windows, and Pale Moon, and I understand it as such that you have deep respect and a slight fear for what privileged filter entries can do; but in my eyes this is in fact great news, as it helps those who for whichever reason still want to use uBO to achieve functionality parity with Nano Adblocker. I didn't even feel it deserved a separate issue report, because in my eyes there's not much about it that needs to be fixed. |
The comment immediately above should hereby be disregarded, after I did a little bit more cross-comparison testing between Nano and uBO in Firefox. Indeed the scripts doesn't seem to work very well (if at all) in uBO after all. More details at DandelionSprout/adfilt#7 (comment). |
Yes, as |
Alright, one last thing, what is the license of this filter? Is the original extension open source? Where is the source code hosted? |
https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies/ says that IDCAC uses GPL v3, which is the same that is used by NanoFilters, so I presumed that it didn't need to be specifically pointed out inside the list. However, despite being said to be GPLv3, it doesn't have a publicly available source code. Instead, one is apparently supposed to extract the source code from the extension, e.g. by extracting the .xpi as if it was a .zip file. |
I unzipped the package but I don't see a license file inside. The files in there don't have copyright / license headers neither. Also, there is one 300+ KiB file that consists of only one line, I'm not a lawyer but I'm pretty sure that's not allowed under GPL-3.0 if the package itself is used to distribute the source code. This feels a bit sketchy, I'll need to investigate further... |
If you want to contact him about all this, he's available on E-mail at https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies/reviews/1179215/ appears to implicate that he doesn't have an online source code for it at all, for that matter. |
As I am on pretty good standing with him, I've now sent him an E-mail now where I've suggested that he could either 1) specify the licence somewhere inside the extension's files, 2) sync his source code to GitHub/GitLab and select GPL-3.0 for the repo, or 3) use a different licence. So we'll see how fast he'll act on that E-mail and on those suggestions of mine. I know first-hand that licences are tricky to navigate through, so I feel fairly certain that he didn't mean any harm. |
I'm inclined to decline this request, for the following reasons:
|
My intention with the list was that it'd help show off some of Nano Adblocker's unique capabilities, and in the process making what would essentially be only the 4th Nano-specific list ever made (after the three Nano Filters lists). |
As I've very recently become able to adapt and run basic Python scripts to fetch, replace and output list entries, I could potentially have made such a script to combine the official list with the Nano expansion. But since the script can currently only be run manually (that I'm aware of), it would have lagged behind the official list when it comes to official updates. |
ThirdPartyPrivileged/IDCACnano.txt
Outdated
eneba.com##+js(nanop-easy-set-cookie.js, GDPR=1) | ||
enviam.de##+js(nanop-easy-set-cookie.js, dws01-level=2) | ||
esea.net##+js(nanop-easy-set-cookie.js, cookie_consent=1) | ||
euroclear.com##+js(nanop-easy-set-cookie.js, cc_necessary=true', 'cc_functional=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this generated? Your parser needs some work. You need two lines to inject two cookies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't know that such a limitation applied to nanop-easy-set-cookie.js
. I'll fix it in about half an hour; I just need to finish some sorting work on Pixiv first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed it now. For the time being I'm converting the entries manually in Sublime Text, since there's relatively few of them.
All script snippets are documented, including what they do and what arguments they accept. NanoFilters/NanoFiltersSource/NanoResources.txt Lines 337 to 343 in 5b139bc
NanoFilters/NanoFiltersSource/NanoResources.txt Lines 376 to 377 in 5b139bc
|
Ideally we could implement a way for privileged filters to load external unprivileged subfilters, that should solve most of the problems we're facing here. |
Given all the restrictions that have been placed on the usage of |
Yes, we'll have to implement ourselves. I'm thinking Not sure how easy it is, things can get complicated if the external subfilter tries to load its own subfilters. |
Hum... I expected the license file to look differently. |
But OK, let's call that good enough. Updated the post above. |
PolishFiltersTeam has script for including external lists => https://github.com/PolishFiltersTeam/ScriptsPlayground/blob/master/scripts/VICHS.sh, you can pin some machine user like NanoMeow to CircleCI or something else (you will need to create token for GH push), then set cron daily/weekly and filterlists should be updated (IDAC doesn't have updates that often, so I think that maybe even twice a week should suffice). For now there is no documentation, but if you want to do that, then you can just ask me how to start 😄 However I see that some domains don't need clicking rules, @DandelionSprout can just use magic of
, it's in Polish GDPR-Cookies list. |
@hawkeye116477 That's not the issue here, I don't want to carry the main filter in my repo. Also, a 500 lines shell script is too overkill to concatenate 2 text files. |
AdguardTeam/Scriptlets#23, maybe help AdGuard to create scriplets |
@krystian3w Either way, that has little to do with this Pull Request, let's not get off topic here. |
As per NanoAdblocker/NanoCore#266. I suppose I'll be fine with moving this list over to your repo. After all, I didn't intend to update it more than once every few months or so anyway (The IDCAC extension updates its version of these entries monthly-ish).