Mottie Author



I recently modified the description on 5 of my userscripts. Now it won't automatically update, and if I attempt to import or edit the same script, it creates a brand new userscript.

Is there any way to prevent creation of a new script or at least transfer the current users from the old userscript to the new one?

Userscripts effected:


I just attempted to update a userscript and got a 400 message "@icon unsupported file type or dimensions are too large."

My userscript targets GitHub and uses GitHub's own icon (https://github.com/fluidicon.png). Yes, it's 512x512 but it's been working just fine as an @icon for a long time now. Do I need to photoshop a smaller version now? And change it for every userscript I need to update?

The only reason I am forced to manually update my userscripts is because the GitHub hook doesn't work... using OUJS is already making me do extra work, please fix this!


data: URI's could pose a DMCA risk.

Almost all userstyles are below 100KB (ref) and therefore limit their use of URI encoded images due to the restrictions set by USO. You could impose a no-URI restriction if it is that much of a concern.

putting CSS directly into a tag and injecting in via a .user.js is fairly simple in a .user.js and very clean

There are a few reasons it is better to use a style-specific addon versus adding the style through a userscript

  • Even though you can run a userscript at document-start there may still be a FOUC. We've encountered this problem with our GitHub-Dark Script userscript, but we've never had a problem with our GitHub-Dark userstyle.
  • Stylesheets injected using GM_addStyle are appended to the <head> and even styles using an !important flag may be overridden by the default style if it also uses the flag.
  • Stylus manages this problem by immediately adding the style, then moving the style after the closing body tag once the document has completed loading.