-
Notifications
You must be signed in to change notification settings - Fork 82
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
Convert "$rewrite=abp-resource" into "$redirect" #857
Comments
"ABP Anti-Circumvention" should never ever be added to uBO, it's specifically made for ABP and is likely to break uBO in bad ways -- it was never designed for any other blocker than ABP (and its subsidiaries blockers). We must make sure to make it known that this list should never be used in uBO; opening an issue of compatibility with "ABP Anti-Circumvention" suggests that the list should be used in uBO, which is opposite of the official advice. That said, I agree that uBO should try to increase compatibility with EasyList and Liste FR. |
A first step there would be to notify the maintainer(s) of FilterLists to remove the uBO (and possibly Nano Adblocker) compatibility icons from their listings of the ABP Anti-Circumvention filter lists. |
/cc @collinbarrett |
Speaking by virtue of being the main infobase updater on that site, I'll agree to mark that list as ABP- and AdBlock-only, but I'll do it on the grounds of Anti-Circumvention's extensive use of |
ABP do not have ABP also no need type blocked of request?
above no have |
I've also noticed that it'd be plausibly feasible to convert |
Better new - ABP can use regex/wildcard for webrtc (?) - uBO for domains / TLD only (?). ! no possible convert
/bitcon.(js|aspx?)/$webrtc ⬇️ ! unknown domain if no have before `$` or `domain=`
...##+js(nowebrtc) ⬇️ ! invalid regex (redirect reject this) and type of block request
/bitcon.(js|aspx?)/$all,redirect=nowebrtc.js |
Related issue: - uBlockOrigin/uBlock-issues#857 The recognized resources are: - abp-resource:blank-mp3 - abp-resource:blank-js ABP's tokens are excluded from auto-complete so as to not get in the way of uBO's filter list maintainers.
I did add compatibility, but frankly it does not feel like an accomplishment which benefit uBO and rather like a feeling of having wasted time on a non issue given that none of the cases provided is an issue for uBO ever since uBO has replaced Liste FR with AdGuard Français. |
This will make it easier for e.g. EasyList, EasyList Spanish, EasyList Italy, and other officially ABP-affiliated lists to add these kind of entries to their lists, so I am firmly confident that your efforts were not wasted. It's currently an open question how many such lists that would add such entries now, however. |
Maybe depend how old ABP must be supported by EasyList projects - if any very old ABP 1.0 / 1.1 & 2.0 maybe rare of lists start use rewrite for ABP users if works exception and cosmetic hide ad-reinsertion. |
I don't understand how this would make it easier for ABP-affiliated list maintainers -- surely uBO was not preventing them from making use of whatever ABP-specific options they wanted to use? For example, they do not shy away from using |
Additionally, the reason ABP-affiliated maintainers are not using If a block filter is found before a |
Okay, those are admittedly good points. |
Prerequisites
Description
Three relatively important lists (EasyList, Liste FR, ABP Anti-Circumvention), two of which are included in uBO, have begun to write entries based on
$rewrite=abp-resource
, which is quite obviously based on uBO and AdGuard's$redirect
but is not supported by uBO. I therefore suppose that converting$rewrite=abp-resource
entries into their$redirect
equivalents could be something to do.Although https://help.eyeo.com/adblockplus/how-to-write-filters#rewrite lists 9 internal resources, only 2 are known by me to be used in any lists ever made (excluding the ABP-specific version of my Nordic list), namely
blank-mp3
andblank-js
.Comprehensive listing of all
$rewrite=abp-resource
entries I could find in major lists:My presumption for how such conversions could work:
blank-text
→noop.txt
blank-css
→ Has no direct equivalent. Possiblynoop.txt
.blank-js
→noop.js
blank-html
→noop.html
blank-mp3
→noop-0.1s.mp3
1x1-transparent-gif
→1x1.gif
2x2-transparent-png
→2x2.png
3x2-transparent-png
→3x2.png
32x32-transparent-png
→32x32.png
As this issue report is specifically about extension-internal resources, I'm pretty sure it's not a duplicate of #46.
A specific URL where the issue occurs
N/A
Steps to Reproduce
$rewrite=abp-resource
entries.Expected behavior:
That the entries are not marked in red in Nano's list syntax checker.
Actual behavior:
That the entries are treated as invalid.
Your environment
The text was updated successfully, but these errors were encountered: