J
Joseph Scoccimaro
I am using greasemonkey to create a script that allows one to analyze a
web page. Currently I am trying to import the javascript from an
external file to add to the DOM of a web page. It is giving me this
error: Security Error: Content at http://www.google.com/ may not load or
link to file:///home/majin/8903/greasemonkeyscript/metaanalysis.js. Is
there a way to get around this? Here is the code I am using:
metaAnalysis: function(scriptSource) {
var theHead = document.getElementsByTagName('head')[0];
var metaAnalysisScript = document.createElement('script');
metaAnalysisScript.type = 'text/javascript';
metaAnalysisScript.src = scriptSource;
theHead.appendChild(metaAnalysisScript);
} //end metaAnalysis()
metaAnalysis('file:///home/majin/8903/greasemonkeyscript/metaanalysis.js');
//this is the calling function.
Joseph Scoccimaro
(e-mail address removed)
web page. Currently I am trying to import the javascript from an
external file to add to the DOM of a web page. It is giving me this
error: Security Error: Content at http://www.google.com/ may not load or
link to file:///home/majin/8903/greasemonkeyscript/metaanalysis.js. Is
there a way to get around this? Here is the code I am using:
metaAnalysis: function(scriptSource) {
var theHead = document.getElementsByTagName('head')[0];
var metaAnalysisScript = document.createElement('script');
metaAnalysisScript.type = 'text/javascript';
metaAnalysisScript.src = scriptSource;
theHead.appendChild(metaAnalysisScript);
} //end metaAnalysis()
metaAnalysis('file:///home/majin/8903/greasemonkeyscript/metaanalysis.js');
//this is the calling function.
Joseph Scoccimaro
(e-mail address removed)