Fix blocking of CloudFlare scripts.
This commit is contained in:
parent
45f50d2764
commit
5383af8468
@ -798,6 +798,7 @@ Config =
|
||||
http://www.google.com
|
||||
https://www.google.com
|
||||
https://www.gstatic.com
|
||||
'self'
|
||||
'unsafe-inline'
|
||||
'unsafe-eval'
|
||||
'''
|
||||
|
||||
@ -50,6 +50,7 @@ Main =
|
||||
$.global ->
|
||||
{whitelist} = document.currentScript.dataset
|
||||
whitelist = whitelist.split('\n').filter (x) -> x[0] isnt "'"
|
||||
whitelist.push "#{location.protocol}//#{location.host}"
|
||||
oldFun = {}
|
||||
for key in ['createElement', 'write']
|
||||
oldFun[key] = document[key]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user