ccd0 / 4chan-x

Adds various features to anonymous imageboards.
https://www.4chan-x.net/
Other
993 stars 136 forks source link

Javascript Whitelist still runs on Userscript #1226

Open saxamaphone69 opened 7 years ago

saxamaphone69 commented 7 years ago

Chrome 55 4chan X 1.13.2.2 Tampermonkey 4.2.7

My Javascript Whitelist looks like this:

#http://s.4cdn.org
#https://s.4cdn.org
http://www.google.com
https://www.google.com
https://www.gstatic.com
http://cdn.mathjax.org
https://cdn.mathjax.org
'self'
'unsafe-inline'
'unsafe-eval'

Because I do not want core.js and extension.js to run (a few functions in there cause a ~300ms reflow)

When run as a userscript, this is what happens: 4chan-x-run-userscript

When run as an extension, this is what happens: 4chan-x-run-extension

These screenshots show, in the console, that as a userscript it still runs, but as an extension it "refuses to load the script".

Just wondering if this is intentional/expected behaviour, and if not, is there a way to remedy this.

ccd0 commented 7 years ago

This is due to https://github.com/Tampermonkey/tampermonkey/issues/211 I would recommend using an ad blocker for this.

saxamaphone69 commented 7 years ago

All good, was just curious about the difference.