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 07:54, 20 August 2022 (Created page with '200px|Actual sugar cubes|thumb === <span style="font-size:160%">sugarcube</span>.js === A script which adds more tools to wikipedia. '''Add the script''' # Go to the page <code>User:(your username)/common.js</code> (for example, for the user Example, it would be <code>User:Example/common.js</code>) # Add this to the '''top''' of the page (create it if you haven't yet):<br /><code>mw.loader.lo...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Actual sugar cubes

sugarcube.js

A 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");

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

  1. 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.

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

How to use