I think this fixes https untrusted script error

Should be a fix for https running sites throwing untrusted script errors