Convert to userscript structure
Convert to a userscript