After greasemonkey is enabled by clicking the icon you must refresh the page to execute the script. Scripts that attach and run an onload event for example would not function properly with clicking the icon to run it as you described. If you want to execute your code optionally you must add your own button to the page using createElement, addEventListener, setAttribute and appendChild
On Nov 1, 4:01 pm, saruke <[email protected]> wrote: > Hi > Is there a way to run the user script on clicking the greasemonkey > button on the firefox browser? > > Thanks in advance, > Saruke --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
