User:The Master of Hedgehogs/Chocolate

This is the guide of Chocolate a multipurpose user script

What is Chocolate?


Chocolate, formerly known as Melting Chocolate Block is a multipurpose and modular gadget-like user script created by User:Anpang01 and coded in JavaScript/jQuery. It can be used to do some things faster and more.

Chocolate supports MediaWiki 1.37 - 1.41 with the Vector 2010 skin, and maybe also the 2022 version.

Installation
Simply go to your common.js page and add the following code: Reset your cache, and it should work.

,, and


Adds buttons in the  dropdown that link to the corresponding Wiktionary, Wikiquote, and Wikidata pages, respectively.



Adds a link on the topbar to an extra sandbox, at.

Might occasionally be useful.

and


Removes some unnescessary text - the site subtitle (the "From Wikipedia, the free encyclopedia" text below the page title).

After removing the site sub, you may want to enable  for a better way to know what wiki you're on, as the site sub doesn't tell the language of the wiki you're on

Removes the unnescessary copyright warning when editing pages.

Prevents accidental log-outs by adding a confirmation screen. The code was written by Fred Gandt and is credited in the JS.

Icon


An "icon" is added at the bottom left of the screen, which displays the chocolate logo and the current version.

This feature is on by default - uncheck "Show icon" in Special:ChocolatePreferences to disable this.

ChocolatePreferences
Since user scripts can't edit the normal Special:Preferences as the page is in safe mode, Chocolate preferences go into its own page at Special:ChocolatePreferences.

Version history
This script was created and was maintained by User:Anpang01, and now maintained by User:The Master of Hedgehogs. Version numbers use a loose version of Semantic Versioning, with each release having 3 numbers.

Links
Source code: Chocolate.js, Chocolate.css

Talk page / Todo list