Skip to content
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

Support AdGuard's empty & mp4 static filter options #701

Closed
gorhill opened this issue Aug 12, 2019 · 19 comments
Closed

Support AdGuard's empty & mp4 static filter options #701

gorhill opened this issue Aug 12, 2019 · 19 comments
Labels
enhancement New feature or request fixed issue has been addressed

Comments

@gorhill
Copy link
Member

gorhill commented Aug 12, 2019

Related discussion: https://www.reddit.com/r/uBlockOrigin/comments/coh3aa/why_translategooglecom_is_block_so_many_requests/

@uBlock-user uBlock-user added the enhancement New feature or request label Aug 12, 2019
@uBlock-user
Copy link
Contributor

KB article -- https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters#empty

@gorhill
Copy link
Member Author

gorhill commented Aug 12, 2019

There are currently 187 filters with empty option in AdGuard Base list and AdGuard Tracking Protection:

+1	Invalid network filter in adguard-spyware: ||tags.tiqcdn.com/utag/telenor/telenor.no/prod/utag.*js$domain=kabel.canaldigital.no,empty,important
+1	Invalid network filter in adguard-spyware: ||googletagmanager.com/gtm.js$domain=kabel.canaldigital.no,empty,important
+1	Invalid network filter in adguard-spyware: ||play.google.com/log?$empty
+1	Invalid network filter in adguard-spyware: ||dpm.demdex.net/id$empty,important,domain=bt.com|nhl.com|business.hsbc.uk
+1	Invalid network filter in adguard-spyware: ||hsbcglobalcmb.sc.omtrdc.net/id?$empty,important,domain=business.hsbc.uk
+1	Invalid network filter in adguard-spyware: ||t.channeladvisor.com^$empty
+1	Invalid network filter in adguard-spyware: ||stats.jpush.cn^$empty
+1	Invalid network filter in adguard-spyware: ||stats.paypal.com^$empty
+1	Invalid network filter in adguard-spyware: ||stats.pandora.com^$empty
+1	Invalid network filter in adguard-spyware: ||metrics.mzstatic.com^$empty
+1	Invalid network filter in adguard-spyware: ||log.musical.ly^$empty
+1	Invalid network filter in adguard-spyware: ||log.iyunmai.com^$empty
+1	Invalid network filter in adguard-spyware: ||device-metrics-us*.amazon.com^$empty
+1	Invalid network filter in adguard-spyware: ||device-analytics.rollout.io^$empty
+1	Invalid network filter in adguard-spyware: ||data.mob.com^$empty
+1	Invalid network filter in adguard-spyware: ||collect-elb-*.amazonaws.com^$empty
+1	Invalid network filter in adguard-spyware: ||c00.adobe.com^$empty
+1	Invalid network filter in adguard-spyware: ||artfut.com^$empty,important
+1	Invalid network filter in adguard-spyware: ||datametrical.com^$empty
+1	Invalid network filter in adguard-spyware: ||apptimize.com^$empty
+1	Invalid network filter in adguard-spyware: ||apptentive.com^$empty
+0	Invalid network filter in adguard-generic: ||z.moatads.com/freewheel*/MoatFreeWheelJSPEM.js$domain=pga.com,empty,important
+0	Invalid network filter in adguard-generic: ||z.moatads.com/freewheel*/MoatFreeWheelJSPEM.js$domain=ncaa.com,empty,important
+0	Invalid network filter in adguard-generic: ||vaughnlive.tv/abvs.php?$empty
+0	Invalid network filter in adguard-generic: ||clickadu.com/apu.php$empty,important
+0	Invalid network filter in adguard-generic: ||popads.net/pop.js^$empty,important
+0	Invalid network filter in adguard-generic: ||gebadu.com/apu.php$empty,important
+0	Invalid network filter in adguard-generic: ||2giga.link/getfile/$empty
+0	Invalid network filter in adguard-generic: ||baiduccdn1.com/propeller.php$empty
+0	Invalid network filter in adguard-generic: ||t.propbn.com/redirect/?spot_id=$empty
+0	Invalid network filter in adguard-generic: ||medleyads.com/*.html$empty,important
+0	Invalid network filter in adguard-generic: ||adsxxxtraff.com/mioa*.html?parameter=$empty
+0	Invalid network filter in adguard-generic: ||ur.ly/cnt.php$empty
+0	Invalid network filter in adguard-generic: ||ioredi.com/apu.php^$empty,important
+0	Invalid network filter in adguard-generic: ||navegacom.com/protect/redirect$empty
+0	Invalid network filter in adguard-generic: ||xgaystube.com/api/direct^$empty
+0	Invalid network filter in adguard-generic: ||peekvids.com/away/pop$empty
+0	Invalid network filter in adguard-generic: ||a.spankbang.com^$empty
+0	Invalid network filter in adguard-generic: ||go.pub2srv.com/apu.php$empty,important
+0	Invalid network filter in adguard-generic: ||go.pushnative.com/ntfc.php?$empty,important
+0	Invalid network filter in adguard-generic: ||valpeiros.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||yoredi.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||ooredi.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||sebadu.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||gialnk.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||aoredi.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||eholnk.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||onclkds.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||deloton.com/afu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||deloton.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||moradu.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||tebadu.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||go.onclasrv.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||go.oclasrv.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||go.mooncklick.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||pipeschannels.com/afu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||fapmeth.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||hypoot.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||eoredi.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||qinvaris.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||cobalten.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||bodelen.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||bokeden.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||siterdm.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||bestadbid.com/afu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||lnkfast.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||keyrolan.com/afu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||thterras.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||dolohen.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||parumal.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||koindut.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||sitegoto.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||deloplen.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||lowgraveleron.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||stremanp.com/apu.php?$empty,important
+0	Invalid network filter in adguard-generic: ||bebi.com/js^$empty
+0	Invalid network filter in adguard-generic: ||jdd01.198game.net^$empty,important
+0	Invalid network filter in adguard-generic: ||anyporn.com/aa/s/s/su.php$empty
+0	Invalid network filter in adguard-generic: ||anyporn.com/aa/s/s/suo.php$empty
+0	Invalid network filter in adguard-generic: ||link.tl/interstitial^$important,empty
+0	Invalid network filter in adguard-generic: ||zog.link^$empty,important,domain=hclips.com
+0	Invalid network filter in adguard-generic: ||check-prizes-now*.life^$empty
+0	Invalid network filter in adguard-generic: ||bubble*life$empty
+0	Invalid network filter in adguard-generic: ://s3.amazonaws.com/*?trkch=*&visitor_id=*-aff0-*&client=*&u=$empty,important
+0	Invalid network filter in adguard-generic: ||jsc.marketgid.com/*.js?t=$empty,important,~websocket
+0	Invalid network filter in adguard-generic: ||servicer.mgid.com^$empty,third-party,important
+0	Invalid network filter in adguard-generic: ||go.ad2up.com/afu.php^$empty
+0	Invalid network filter in adguard-generic: ||redirect2719.ws^$empty
+0	Invalid network filter in adguard-generic: ||mba-vergleich.de^$third-party,empty
+0	Invalid network filter in adguard-generic: ||bt.co/network/index-mac-ut.html$empty,important
+0	Invalid network filter in adguard-generic: ||octoclick.net/b/code/*.js$empty
+0	Invalid network filter in adguard-generic: /?&subid=*&pid=$empty,important
+0	Invalid network filter in adguard-generic: /?&pid=*&subid=$empty,important
+0	Invalid network filter in adguard-generic: ?tid=*&red=1&*&abt=$empty,important
+0	Invalid network filter in adguard-generic: &tid=*&red=1&abt=$empty,important
+0	Invalid network filter in adguard-generic: .com/?zoneid=*&xref=*&uuid=$empty,important
+0	Invalid network filter in adguard-generic: ||licklink.net/js/full-page-script.js$empty,important
+0	Invalid network filter in adguard-generic: ||vast.doublemax.net/adserver/vast.xml$empty,important
+0	Invalid network filter in adguard-generic: ||aftonbladet.ooul.tv/nocache/se-aftonbladet/aab/aftonbladet_config.js$empty,domain=aftonbladet.se
+0	Invalid network filter in adguard-generic: ||ipla.hit.stat24.com/*ad.xml$empty,important,domain=~polsatnews.pl|~polsatsport.pl|~twojapogoda.pl
+0	Invalid network filter in adguard-generic: ||google.com/*/ads.html|$empty,important,domain=napisy24.pl
+0	Invalid network filter in adguard-generic: ||lib.wtg-ads.com/publisher/legia.net/standard.publisher.config.min.js$empty,important,domain=legia.net
+0	Invalid network filter in adguard-generic: ||lib.wtg-ads.com/lib.min.js$empty,important,domain=legia.net
+0	Invalid network filter in adguard-generic: ||get.optad360.io/*/plugin.min.js$empty,important,domain=legia.net
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=viafree.no,media,empty,important
+0	Invalid network filter in adguard-generic: ||hayan.tv/adp.htm$empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=rollingstone.it
+0	Invalid network filter in adguard-generic: ||sextubehub.com/xx/o.php$empty
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=viafree.dk,media,empty,important
+0	Invalid network filter in adguard-generic: ||dniadops-a.akamaihd.net/*.mp4$domain=dplay.dk,empty,important
+0	Invalid network filter in adguard-generic: ||extra.cz/*=ref^$empty
+0	Invalid network filter in adguard-generic: ||static.jfrft.com/js/main_video.js^$domain=dilidili.wang,empty,important
+0	Invalid network filter in adguard-generic: ||static.jfrft.com/js/main_list.js^$domain=dilidili.wang,empty,important
+0	Invalid network filter in adguard-generic: ||d5.sina.com.cn/litong/zhitou/leju/leju.js$empty,important,domain=rjno1.com
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=mikrotikafricaa.com
+0	Invalid network filter in adguard-generic: ||sp148.global.ssl.fastly.net^$empty
+0	Invalid network filter in adguard-generic: /rellect/AdblockDetector/handler.$~third-party,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js^$empty,important,domain=ehubsoft.net
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=viafree.se,empty,important
+0	Invalid network filter in adguard-generic: ||mds.pliing.com/scm/videoburner/isobar/burneruploads/*.mp4$domain=tv3sport.dk,empty,important
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=tv3sport.dk,empty,important
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=play.tv3.lt,empty,important
+0	Invalid network filter in adguard-generic: ||adservice.google.com/adsid/integrator.js?domain=reevown.com$empty,important,domain=reevown.com
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pub-config/*/ca-pub-*.js$empty,important,domain=reevown.com
+0	Invalid network filter in adguard-generic: ||google-analytics.com/analytics.js$empty,important,domain=reevown.com
+0	Invalid network filter in adguard-generic: ||bnserving.com/*/invoke.js$empty,important,domain=strikeout.co
+0	Invalid network filter in adguard-generic: ||static.doubleclick.net/instream/ad_status.js$domain=last.fm,empty,important
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=viasport.no,empty,important
+0	Invalid network filter in adguard-generic: ||freewheel-mtgx-tv.akamaized.net/*.mp4$domain=viasatsport.se,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js$domain=kmlviewer.nsspot.net,empty,important
+0	Invalid network filter in adguard-generic: ||video-ads.rubiconproject.com/video/*/vast.xml$empty,important
+0	Invalid network filter in adguard-generic: ||adservice.google.com^$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com^$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||s0.2mdn.net^$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||nexac.com/*/getdata.xgi$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||c.amazon-adsystem.com/aax2/apstag.js$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||googletagservices.com/tag/js/gpt.js$empty,important,domain=twitch.tv
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=ihackedgames.com
+0	Invalid network filter in adguard-generic: ||adservice.google.com/adsid/integrator.js$empty,important,domain=fileflares.com
+0	Invalid network filter in adguard-generic: ||imasdk.googleapis.com/js/sdkloader/ima3.js$empty,important,domain=ondemandkorea.com
+0	Invalid network filter in adguard-generic: ||pubads.g.doubleclick.net/gampad/ads?*&output=xml_vast$domain=stream.thecwvideo.com,empty,important
+0	Invalid network filter in adguard-generic: ||static.mgid.com/js/jquery.inputmask.min.js$domain=kissmanga.com,empty,important
+0	Invalid network filter in adguard-generic: ||px.ads.linkedin.com/collect?fmt=js$domain=kissmanga.com,empty,important
+0	Invalid network filter in adguard-generic: ||googletagmanager.com/gtag/js$domain=kissmanga.com,empty,important
+0	Invalid network filter in adguard-generic: ||static.popads.net/js/trustguard.js$empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=igniel.com,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=temp-mail.org,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=123link.pro,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=nzbstars.com
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js$empty,important,domain=mhtviewer.booogle.net
+0	Invalid network filter in adguard-generic: ||adservice.google.*/adsid/integrator.js?domain=dl.ccbluex.net$empty,important,domain=dl.ccbluex.net
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pub-config/*/ca-pub-*.js$empty,important,domain=dl.ccbluex.net
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=mshare.io
+0	Invalid network filter in adguard-generic: ||adservice.google.*/adsid/integrator.js?domain=123link.$empty,important,domain=123link.pw
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=123l.pw|123link.vip|123link.pw|dalatmongm.site
+0	Invalid network filter in adguard-generic: ||googleads.g.doubleclick.net|$empty,important,domain=123l.pw|123link.vip|123link.pw|dalatmongm.site
+0	Invalid network filter in adguard-generic: /jquery.adi.$empty,important,domain=123l.pw|123link.vip|123link.pw|dalatmongm.site
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=hackedonlinegames.com
+0	Invalid network filter in adguard-generic: ||npttech.com/advertising.js$empty,script,important
+0	Invalid network filter in adguard-generic: ||googletagmanager.com/gtag/js?$empty,important,domain=free-mp3-download.net
+0	Invalid network filter in adguard-generic: ||bcloudhost.com/*/invoke.js$empty,important,domain=free-mp3-download.net
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=theappstore.org
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js$domain=epubreader.1bestlink.net,empty,important
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=mylink.love
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js$empty,important,domain=excelviewer.herokuapp.com
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=free-mp3-download.net
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/show_ads.js$empty,important,domain=flashplayer.fullstacks.net
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=mylink.li
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=trackr.fr
+0	Invalid network filter in adguard-generic: ||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$empty,important,domain=kitploit.com
+0	Invalid network filter in adguard-generic: ||adservice.google.com/adsid/integrator.js?domain=gamedistribution.com$empty,important,domain=player.tubia.com
+0	Invalid network filter in adguard-generic: /wp-content/embeded-adtional-content/*$empty,important
+0	Invalid network filter in adguard-generic: ||code.poptm.com^$empty,important,script,third-party
+0	Invalid network filter in adguard-generic: ||bitmedianetwork.com^$empty
+0	Invalid network filter in adguard-generic: ||adnxs.com^$empty
+0	Invalid network filter in adguard-generic: ||paclitor.com^$empty
+0	Invalid network filter in adguard-generic: ||mobileofferplace.site^$empty
+0	Invalid network filter in adguard-generic: ||stencef.com^$empty
+0	Invalid network filter in adguard-generic: ||ad.ettoday.net^$empty
+0	Invalid network filter in adguard-generic: ||2778255fe56.com^$empty
+0	Invalid network filter in adguard-generic: ||35.188.14.213^$empty
+0	Invalid network filter in adguard-generic: ||aanqylta.com^$empty
+0	Invalid network filter in adguard-generic: ||u1trkqf.com^$empty
+0	Invalid network filter in adguard-generic: ||terepran.com^$empty,important
+0	Invalid network filter in adguard-generic: ||ofeetles.pro^$popup,empty,important
+0	Invalid network filter in adguard-generic: ||analyticsq.com^$empty,important
+0	Invalid network filter in adguard-generic: ||marial.pro^$empty,important

@uBlock-user
Copy link
Contributor

So you will be discarding the filter as invalid ?

@gwarser
Copy link

gwarser commented Aug 13, 2019

WTH? AdGuard converts this filter to redirect=noopjs! And also have problem with CORS.

image

@uBlock-user
Copy link
Contributor

Eh! That's not what their KB says.

@gorhill
Copy link
Member Author

gorhill commented Aug 13, 2019

discarding the filter as invalid

Of course not -- I wouldn't have opened an issue just for this trivial fix. It will be converted to an empty file -- zero bytes. I had to modify the redirect engine to accommodate the fact that empty can apply to any type of requests, while uBO requires a type for a redirect rule.

To be clear, the list I pasted above was taken from NanoAdBlocker, it rejects filters with empty option.

@gorhill
Copy link
Member Author

gorhill commented Aug 13, 2019

And also have problem with CORS.

That's a Firefox issue, extensions should be exempt of CORS as dictated by the server. I don't know if there is an opened issue about this on bugzilla.

@liamengland1
Copy link

I think it's a chrome issue too.

@gorhill
Copy link
Member Author

gorhill commented Aug 13, 2019

I fixed the issue locally and it works fine with Chromium.

@gwarser
Copy link

gwarser commented Aug 13, 2019

an opened issue about this on bugzilla.

I see few, maybe this: https://bugzilla.mozilla.org/show_bug.cgi?id=1419459

@uBlock-user
Copy link
Contributor

I had to modify the redirect engine to accommodate the fact that empty can apply to any type of requests, while uBO requires a type for a redirect rule.

Interesting, so $redirect will be required with $empty or will be independent ?

gorhill added a commit to gorhill/uBlock that referenced this issue Aug 13, 2019
Related issue:
- uBlockOrigin/uBlock-issues#701

The filter option `empty` is converted to `redirect=empty`
by uBO internally; however unlike when the `redirect=`
option is used expressly, the `empty` option does not
require a resource type.

When `empty` is used, only network requests which are meant
to return a text response will be redirected to an empty
response body by uBO -- so `empty` will not work for
resources such as images, media, or other binary resources.
@gorhill
Copy link
Member Author

gorhill commented Aug 13, 2019

That's not what their KB says.

I suspect the empty option works as expected with their standalone product -- while we need to rely on redirection with an implementation meant for extensions.

@uBlock-user
Copy link
Contributor

uBlock-user commented Aug 13, 2019

Well it doesn't stop the incessant barrage of blocked network requests from appearing as it was expected of $empty

test url -- https://www.quora.com/In-Japanese-what-is-the-meaning-of-ka

||log.quora.com^$empty,important

Status in network pane still remains blocked:other instead of returning 200 OK and the barrage continues in the logger

image

works as expected with their standalone product

@ameshkov is that the case with adguard extension ?

Nevermind, it's the same with Adguard's extension too, it doesn't follow the KB documentation and doesn't as work as expected.

@ameshkov
Copy link

Hi all,

Yeah, it works as expected with the standalone products indeed, but in the browser extensions, there's no alternative to implementing it as a redirect to data:base64.

We are actually thinking about deprecating this in favor of $redirect in the future updates. $empty -> $redirect=noopjs conversion is enough for most of the cases so it will be kept until the filter lists are cleaned up.

The ETA is about 2-3 months.

@gorhill
Copy link
Member Author

gorhill commented Aug 13, 2019

thinking about deprecating [empty]

I think empty would still be a useful shorthand for redirect=noop[something] -- I am sure filter list maintainers like to have a less verbose way for common cases.

@ameshkov
Copy link

@gorhill well, it's up to you then. If you decide to support it, we won't remove it.

Talking about shorthands, $mp4 is another candidate.

gorhill added a commit to gorhill/uBlock that referenced this issue Aug 13, 2019
Related discussion:
- uBlockOrigin/uBlock-issues#701 (comment)

The `mp4` filter option will be converted to `redirect=noopmp4-1s`
internally, and `media` type will be assumed.
@uBlock-user uBlock-user added the fixed issue has been addressed label Aug 14, 2019
@gorhill gorhill changed the title Support AdGuard's empty static filter option Support AdGuard's empty & mp4 static filter options Aug 14, 2019
@liamengland1
Copy link

Access to XMLHttpRequest at 'data:text/plain;base64,DQo=' (redirected from 'https://play.google.com/log?format=json&hasfast=true') from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

What to do?

@uBlock-user
Copy link
Contributor

uBlock-user commented Sep 28, 2019

That's a browser's blocking notification as you're running into CORS, you will have to set Access-Control-Allow-Origin header by yourself to overide that.

@maximou4391
Copy link

Hello @gorhill, don't know if it's really related but I'm trying to understand why one of our script is return a 307 when Ublock is activated wheread the other indicates only "blocked"
image

Is this because the old one is in a way "known" by Ublock?

Thanks a lot in advance,

Maxime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed issue has been addressed
Projects
None yet
Development

No branches or pull requests

6 participants