userscript plugin: more rubust script execution