Added menu API for userscripts