New library script
Add userscript header
Change to userscript style
Remove debug code