Your example is working 100% fine for me under

Firefox/3.0.4 on WinXP
Greasemonkey 0.8.20080609.0

Check out whether there are other scripts or extensions conflicting
with your script.

On Thu, Dec 4, 2008 at 3:04 PM, Trevor Jenkins
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to run the sample code from the Firefox Gecko DOM documentation
> for styleSheets and cssRules with a view ot incorporating it into a script
> of my own but GreaseMonkey reports a "Security error"  pointing at the
> line I've marked in this extract whenever the test script runs.
>
> // extracted from the following page 
> https://developer.mozilla.org/en/Gecko_DOM_Reference/Examples#Example_4:_Using_Stylesheets
>
> ss = document.styleSheets;
>
> for (i = 0; i < ss.length; i++) {
>   for (j = 0; j < ss[i].cssRules.length; j++) { // <- Security error reported 
> on this line
>     GM_log("Rule: " + ss[i].cssRules[j].selectorText);
>   }
> }
>
> // end of extract
>
> Any ideas how to solve this issue?
>
> Regards, Trevor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to