Is there a way to exit a Greasemonkey script?
- by SimpleCoder
I know that you can use return; to return from a Greasemonkey script, but only if you aren't in another function. For example, this won't work:
// Begin greasemonkey script
function a(){
return; // Only returns from the function, not the script
}
// End greasemonkey script
Is there a built in Greasemonkey function that would allow me to halt execution of the script, from anywhere in the script?
Thank you,