User:Equazcion/sandbox1


 * See this help page for more information on Wikipedia scripting. Also see WikiProject User scripts/Old list of scripts for the script list that appeared on this page prior to 1 May 2012.

User scripts are customizations authored by the community that allow registered Wikipedia users to change Wikipedia's interface beyond the options available in preferences. This page provides a list of available scripts and provides instructions on installing them. User scripts are written in JavaScript.

Installation
There are generally 3 steps to script installation:


 * First, make sure you are registered and logged in. Only logged-in users can install scripts.
 * Navigate to Special:MyPage/common.js to see and edit your personal ".js" page. Alternatively, you may use Special:MyPage/skin.js to work only with the .js page that applies to your current skin.
 * Edit your .js page and add the following line:  then save the page. For example, to install the Sharebox script, add the following line:

After installation, bypass your cache to make sure the changes take effect.

Automated script installer

 * - An automated userscript installer. This installer itself must be installed manually, but afterward, an automated script installation interface will display on this page, and at WP:US.

Additional notes

 * Many scripts are designed and tested primarily with the Vector skin (Wikipedia's current default skin).
 * If the script is not located on this wiki, you can use  function to include it from there as shown in the following example. Take note of the explicit action= and ctype= options added to the URL. For example:
 * Some user scripts are made into gadgets; you can install them simply by selecting a checkbox in your Preferences.
 * See WikiProject User scripts/Old list of scripts for the script list that appeared on this page prior to 1 May 2012. It contains an extensive list of scripts that haven't been confirmed working recently.
 * See Category:Wikipedia scripts for the most exhaustive list of user scripts.

= Vector compatible =

Multifunction tools
Several different types of tools in one script.


 * – Adds robust page previews and other tools, accessible via popups that display when rolling over links. Enable via
 * – Easy tagging, delete nomination, user welcoming/notifications, vandalism reverts/warnings/reports, and more. Enable via

For reading
Scripts that offer superficial site-wide changes to ease browsing.


 * – Adds tooltips to inline citations, so you don't need to jump away from the article text for reference information. Enable through
 * – Adds social networking share buttons.
 * – Hides the left sidebar in Vector. Can access the sidebar anytime by alt-shift-a.
 * – Translates sidebar language links into English, adds Google Translate links.
 * – Makes maintenance templates appear smaller, both horizontally and vertically.
 * – Roll over any year in an article about a dated subject and see the age of that subject that year.
 * – High-quality LaTeX font typesetting via MathJax.
 * – Double-click a word, and go to its definition on Wiktionary.
 * – Makes the Table of Contents float at the bottom left of the page, so you don't need to scroll back up to the top.
 * - (Handy for phones) Adds a small button to the left of the page which moves to the top of the page instead of having to scroll there. If you installed this before May 2013, you will need to reinstall it.
 * - A discreet floating toolbar that appears when scrolling down a Wikipedia page, providing convenient access to the tools that appear at page tops.

Search
Modify the site's search bar.


 * – Adds a pulldown menu next to the quick search bar allowing selection of namespace to search in.
 * – Use Ctrl-click (PC) or Command-click (Mac) to open search results list or suggestions in new tab.
 * – Open search results list or suggestions in new tab automatically.
 * – Adds a link next to an article's title to search Google for that title in a new tab.

For editing
Scripts that offer superficial site-wide changes aimed at those who edit actively or participate in discussions.

Inline

 * – Colors links on the page to indicate redirects, broken redirects, disambiguation pages, and XfDs by default.
 * – Highlights links that occur more than once in an article (separate for lead and body).
 * – Adds a linked pilcrow on section header mouseover for making section links faster/easier.
 * – Makes plaintext wikilinks, , and URLs clickable where they normally aren't (ae. in the History tab and on .js pages).
 * - shows links next to page title to the edit intro and preloaded content (if they exist)
 * – Click on text in an article to get information about who added that text, and when. Uses data from the WikiTrust project.

Discussion oriented

 * - Collapses the nominations on pages like WP:FAC and WP:PR into expandable headers with basic information on the nomination, significantly decluttering the pages.
 * – Highlights administrators in all listings and signatures.
 * – Marks blocked users in all listings and signatures (faded and struck-out username).
 * – Adds graphical icons to users' !votes in discussions.
 * – Highlights your discussion comments.
 * – Adds links to the deletion log and any AfD discussions next to an article's title (only if there are any).
 * – hides excessive warnings, makes some of the interface collapsible and minimises signatures.

Menus and tabs

 * – Toggle between drop down menus and tabs in Vector.
 * – Same as Dropdown To Tabs, but uses jQuery.
 * – Shows edit and history tabs for both main and talk pages while viewing either one.

Toolbox
Scripts that add links to the toolbar that display additional information or highlight things.
 * - adds two link in the toolbox, one that highlights redirects and one that highlights disambiguation links.
 * – Adds a link "Patrol New Pages" link in the toolbox.
 * – Brings the History page's Toolserver links (plus the Page logs link) to the sidebar, so you don't need to navigate to the History page first to see them.
 * – Adds a link to the sidebar's toolbox to view various page size statistics. Although useful for DYK, see DYKcheck for a more durable build.

Editing
Scripts that add to or refine editors' toolsets.


 * – Adds links to the category bar that allow for quicker Ajax category editing. Enable through.
 * – Easily review Articles for creation submissions and redirect requests using a powerful interface. Enable through.
 * – allows for one-click editing of section headings while reading an article
 * – Notification of changes to watched pages. Changes are checked on each page load, with notifications appearing at the top of the page under its title.
 * – Changes the "My sandbox" link to a regular page link, instead of loading the sandbox's edit page by default.
 * - Allows toggling of edit notices.
 * — for editing redirects.

Editing interface
Scripts that enrich the site's editing interface or change the way it executes.

Inline

 * – A comprehensive tool suite that can be enabled through.
 * – Flags possible issues with wikitext while editing a page.
 * – Offers a popup suggestions menu whenever you start typing a link or template in the main edit box.
 * – Helps fill parameters of templates.
 * – Check matching for template and variable brackets.

Previewing

 * – Allows editing preview and changes without page reloading.
 * – Adds a button to the edit form to preview the current section, with a references section included.
 * – Shows editing previews beside the edit box instead of above or below.
 * – When previewing changes, sorts list of called templates by date last modified and displays the latest edit summary for each; useful for debugging complex templates.
 * - Preview transclusions from any namespace.

Extra functions

 * – adds a small button to save the actual content and goes directly to the edit page again.
 * – Creates a separate edit summary box for the name of the edited section, making the browser's autocomplete function more useful.
 * – Adds a menu below the edit summary line where you can choose from your own preset edit summaries.
 * Revised version allowing theoretically infinite custom summaries using an array. Placed here due to User:Equazcion's suggestion.
 * – Adds math editor for enhanced editing toolbar, which provides online preview while typing equations.
 * – add table editing helpers to the toolbar
 * – checks edited JavaScript for syntax errors before saving
 * - Adds a link in the toolbox for editing  tags in templates.

Cleanup
Scripts docked to the toolbox that, when executed, automatically clean up the page in some manner.


 * – Cleanup various problems with markup, headlines, templates, and ISBNs.
 * - A user script that semi-automatically fixes more than 200 common errors in wiki markup.
 * - fixes hyphens, dashes, and minus signs per MOS:DASH.
 * – British and Canadian spelling consistency per WP:ENGVAR.
 * – Cleanup dates per WP:MOSNUM.
 * – Delink common terms.
 * – Formatting fixes per WP:MOS, MOSCAPS etc.
 * – Add a link (accessible in the drop-down menu in Vector and as a tab in Monobook) to harmonize whitespace in citation templates, and another to convert them to the vertical format.
 * – Add a link accessible in the drop-down menu in Vector and as a tab in Monobook that adds the appropriate header and footer to close any XfD discussion.

Vandalism

 * – Rollback summary.
 * – Revert all contributions of a user
 * – Rollback selected contributions of a user or all contribs of a user
 * – Anti-vandal javascript GUI
 * , a simple script catching edits with Repeating characters filter on them.
 * - Changes the behavior of "rollback" link: instead of jumping to the diff page, leaves you in the same page. Together with Gadget popup, this can make vandalism-fighting slightly more efficient. In addition, right-clicking the "rollback" link will let you enter a summary, instead of the standard rollback summary.
 * - Quick links to standard warning messages in the Toolbox when editing a user talk page.
 * - Adds an Ajax undo link next to the normal undo link on page histories and on diff pages.
 * - Turns rollback links into AJAX rollback links.

Diffs

 * – Adds additional functionality to diff display. Part of User:Cacycle/wikEd.js. Enabled when WikEd is enabled or through
 * – Adds time between diffs and time since each revision.
 * – Links the "intermediate revisions" message so it can be clicked to see a history listing of those revisions.
 * - Adds buttons to each line on the Recent Changes screen, the watchlist, the contributions screen, and article history screens, allowing one to load (and show/hide after loading) an individual diff without moving to another page and view multiple diffs at once.
 * - Modification of Ale jrb's original UserHist script, which allows filtering of an article's edit history by author name, to add the inline diff functionality, as with the "In-place diffs" script above. (Note that the "In-place diffs" script is not required to use this one, but there is no overlap between the two; this one does not replace the general "In-place diffs" functionality).
 * – Show a live-updated diff link at the top of History pages while you select revisions, so you don't need to actually load the diff to get a diff link.

User pages

 * – Shows user groups, edit count, and time registered.
 * – Shows user rights groups.
 * – Adds contribs and stats tabs to user and user talk pages.
 * – Allows a user to quickly change their displayed online status in a couple of clicks.
 * – Allows user to change their displayed status in one click.
 * - Compatible with the UserStatus template; allows user to change their displayed status in one click.
 * – Adds a link to the toolbox to calculate your edits by namespace and write them to a table in your userspace.
 * – Click on a status from a list visible to you or everyone to change your status.
 * – Click on a status from a list visible to you or everyone to change your status.

Images

 * – Adds a tool on image pages that allows the user to create and organize imagemaps much more easily.
 * – Displays the number of megapixels (106 pixels) on the image page.

Watchlist
Also see WP:CUSTOMWATCH for a list of possible Watchlist customizations.


 * – Watchlist customization and organization.
 * – Adds some useful links to your Watchlist.
 * – Shows the addition of pages to specified categories on your watchlist.
 * – adds interwiki watchlists to your watchlist; supports only a few popular wikis.
 * – Completely disables the recent Watchlist and History page changes that highlight updates to pages since your last visit.
 * – Lets you know which watchlist changes you've already checked by fading out viewed items.
 * – When "High database server lag" message shows up, this script displays the total days/hours/minutes/seconds of the lag, in addition to the default total seconds display.
 * - Bolds watched pages in Category and "User Contributions" listings. Also adds a "Show watchlist controls" link to enable watching and unwatching directly from these listings.
 * – Polls your watchlist when you open any wikipedia page, and then once a minute after that. When it discovers a new, unread page in your watchlist, creates a user-message informing you of the change, and stops polling. The message contains links to your watchlist, to the changed pages, and to their history page.
 * - Automatically expands watchlist/RecentChanges/RelatedChanges links in enhanced RC mode. Also adds a button to collapse all, similar to "Watchlist Links" above, which apparently isn't working currently.

History

 * – Adds a link to History pages, next to the "Number of watchers" link, to show the number of active users watching the page ("active" defined as users who have logged in within the last 30 days).
 * – Changes times in user contributions and history pages to use 12-hour AM/PM clock.

Categories

 * – Adds a link to each page's associate Talk: or main page.
 * – extremely powerful category editing tool from Commons. Recently this tool learned how to work with regular articles, not just files. this is a wrapper that set the setting variable to enable non-file categorization, and loads the latest cat-a-lot from Commons.

Logs

 * – Adds another box to the sidebar that shows a regularly updated list of new pages

Contributions

 * – Does the opposite of the "Only show edits that are latest revisions" checkbox. (There is also an it.wikipedia.org-specific version, which has some "special" problems with some skins, but it still displays somewhere!)
 * – Changes times in user contributions and history pages to use 12-hour AM/PM clock.

Recent Changes

 * - Automatically refreshes the Recent Changes every 60 seconds using Ajax.
 * - Automatically expands watchlist/RecentChanges/RelatedChanges links in enhanced RC mode. Also adds a button to collapse all, similar to "Watchlist Links" above, which apparently isn't working currently.

Todo lists

 * − Buttons to add a link to the current page to predefined "todo" list.

WikiProject-specific

 * – Tool for checking Did You Know eligibility.
 * – Adds a link to the toolbox that instructs a Taxobot to update the child list for a taxonomy template.
 * – Easily review Articles for creation article, redirect, and category submissions.

Meta-scripts

 * - An automated installer for Wikipedia userscripts.
 * – Allows you to carry out experiments with user JS and CSS code locally – that is, without saving it to your user JS/CSS page first. Does not work in Internet Explorer before version 8.

Non-Vector only

 * – Adds a quick link in the toolbar for checking one's edit count. (Especially for those who have editcountitis!)
 * – Adds a contributions tab on user and user talk pages.
 * – Adds a porlet to the sidebar that shows a regularly updated list of recent changes
 * – Adds a "block" tab to user pages, contribs pages, and diff pages. Comes with built-in block rationales and expiry times, as well as a "custom block" option.  This script will not work if you are NOT an administrator.
 * – Adds tabs to WhatLinksHere pages which allow a user to filter the list of links. Designed years ago with [[WP:DPL|disambiguation}} in mind, and duplicates many features since added to the standard WLH page.  Quick way to get counts of links by type.

Libraries
These functions can be included directly in a script but don't do anything unless called by some other code. The functions marked as deprecated have been rendered obsolete by new features added to MediaWiki, and only exist now as wrappers for compatibility with existing code.

(Template)

Stylesheets
CSS code in this section is added slightly differently to JavaScript code. The code can be imported by adding  to your monobook.js, or the code can be @imported into your monobook.css. You can just paste the source code if you do not wish to receive updates to the code when it is improved.