Is there a way to exit a Greasemonkey script?
        Posted  
        
            by 
                SimpleCoder
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by SimpleCoder
        
        
        
        Published on 2011-01-10T20:59:48Z
        Indexed on 
            2011/01/11
            1:54 UTC
        
        
        Read the original article
        Hit count: 324
        
JavaScript
|greasemonkey
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,
© Stack Overflow or respective owner