I’ve got a Greasemonkey-for-IE script in IE9 that’s importing jQuery. But on secure pages it doesn’t work.
I’m getting:
SEC7111: HTTPS security is co
You can eliminate the issue with simpler code by using a scheme-relative URL like this:
var script = document.createElement("script");
script.setAttribute("src",
"//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");
This will use http:// on an http:// page and https:// on an https:// page...a much simpler way to solve the issue.