Jump to content

User:BoxOfNotes/sugarcube

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BoxOfNotes (talk | contribs) at 05:06, 21 August 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Actual sugar cubes

sugarcube.js

A user script which adds more tools to wikipedia.

Add the script

  1. Go to the page User:(your username)/common.js (for example, for the user Example, it would be User:Example/common.js)
  2. Add this to the top of the page (create it if you haven't yet):
    mw.loader.load("/w/index.php?title=User:BoxOfNotes/sugarcube.js&action=raw&ctype=text/javascript");
  3. Reload the page and there should be some buttons on the top left (next to the wikipedia logo). If not, go here and click Yes to purge the cache.

Note that the script currently only works on the english wikipedia (the wiki you're on right now).

View the code: User:BoxOfNotes/sugarcube.js
Created and maintained by User:BoxOfNotes.

Parts

Preferences are at Special:Sugarcube (only works if you have added the script).

All features:

  • Extra tools (tools) - adds 3 buttons at the top left that open a dropdown. (only 2 are added and none of them work)
  • No "From Wikipedia, the free encyclopedia" (noSiteSub) - only a little minor change.
  • Title icon (titleIcon) - adds a small icon of your choice in front of all page titles.