-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://forums.lanik.us/viewtopic.php?f=62&t=39280&p=129024#p129024
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4633bf8
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.
Does not work with Firefox on my end and the
nowebrtc.js
will not work, issue gorhill/uBlock#1930 (comment)4633bf8
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.
do these ones work for you ?
4633bf8
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.
even better
||readcomics.website^$csp=script-src 'self' * 'unsafe-inline' data:
4633bf8
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.
Yes, but I think disabling the whole reinsertion process would be preferable, so
readcomics.website##script:inject(abort-on-property-write.js, decodeURIComponent)
works for me and I do not notice any site breakage, if somebody reports breakage caused by this filter
your suggested filterset can be used.
4633bf8
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.
||readcomics.website^$csp=script-src 'self' * 'unsafe-inline' data:
will certainly cause site breakage, this site usesRocket Loader
to load scripts and the csp will disable it.https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-
4633bf8
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.
This 1 does not break the navigation (arrows .. as happened with script-src)
||readcomics.website^$csp=connect-src *.readcomics.website
or if I want to permit other connections for example:
||readcomics.website^$csp=connect-src *.readcomics.website *.komoona.com
works FF / chrome.
Do you see something else broken ?
4633bf8
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 forgot to link to the updated fix, sorry 0610ddd
With
||readcomics.website^$csp=connect-src *.readcomics.website
I only see some minor layout breakage, but if I addI still get a

WebRTC-connection
which
readcomics.website#@#script:inject(abort-on-property-write.js, decodeURIComponent)
disables.4633bf8
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.
yes, in chrome still does not exist some no-webrtc directive in CSP, but in this case I see no ads using only connect-src (and sure - disabling "ublock filters").
Sure, it's better killing the generation of all crap, it was just my curiosity experimenting this CSP weapon.
4633bf8
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 tested connect-src on
clashdaily.com
- in FF it's ok, in chrome the webrtc ads are still present.4633bf8
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.
With only

||readcomics.website^$csp=connect-src *.readcomics.website
I still see adsit just takes longer for them to appear on my end.
It works fine with Firefox.
Same behaviour at
clashdaily.com
.