medialab / google-bookmarklets

extract list of results from a google page as csv with bookmarklets
https://medialab.github.io/google-bookmarklets/
GNU General Public License v3.0
16 stars 2 forks source link

catch forbidden on some domains #4

Closed RouxRC closed 8 years ago

boogheta commented 8 years ago

well actually it doesn't look like there are real ways to do that. @Yomguithereal Is there a way to not even catch but just know that a Content Security Policy error occured in a page? for instance to warn via an alert that injecting an artoo script via a bookmarklet failed on websites such as Github for instance (no real use here, mostly theoretical question)

Yomguithereal commented 8 years ago

That's a tough one. I am not sure the javascript context can get this level of information on a request failure because it would be a security issue. However if what you need is to bypass csp headers we already assessed that we need an extension or launching the browser with perilous flags.

boogheta commented 8 years ago

I wasn't asking about bypassing csp, I know it requires browser tuning. I'm simply pondering whether there is any way to just "know" elsewhere than in the console whenever a csp rule occur: some event triggered that could be raised or such