User:Jkmartindale/gadgets

Copy and paste these code snippets to your custom JavaScript or custom CSS.

My Gadgets

edit

Adds a "Subpages" link to the page actions that shows subpages of the current page.

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Jkmartindale/subpages.js&action=raw&ctype=text/javascript');

Gadgets I Use

edit

Adds an [archive] link next to links in References that points to a cached version of the target page.

mw.loader.load('//fr.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ArchiveLinks.js&action=raw&ctype=text/javascript');

Turns useless UTC timestamps into your local time

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Gary/comments in local time.js.js&action=raw&ctype=text/javascript');
//My settings
LocalComments =
{
	dateFormat: 'ymd',
	dayOfWeek: false,
	timeFirst: false,
	twentyFourHours: true
};

Strike out usernames that have been blocked

mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');

Adds Purge to the page actions that, uh, purges the page.

mw.loader.using(['mediawiki.util', 'mediawiki.api', 'mediawiki.notify']).done(function ()
{
	mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-purgetab.js&action=raw&ctype=text/javascript');
});

Displays on user pages (and subpages) the amount of edits said user has made

mw.loader.load('//id.wikipedia.org/w/index.php?title=MediaWiki:Gadget-quickeditcounter.js&action=raw&ctype=text/javascript');

Displays tooltips for references (duh)

mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ReferenceTooltips.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ReferenceTooltips.css&action=raw&ctype=text/css', 'text/css');

Pressing Ctrl or Command while clicking the search icon will open results in a new tab

mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-search-new-tab.js&action=raw&ctype=text/javascript');

Highlights wikitext syntax in the editor.

mw.loader.load('//www.mediawiki.org/w/index.php?title=User:Remember_the_dot/Syntax_highlighter.js&action=raw&ctype=text/javascript');

Adds alternating color to horrid non-Flow talk pages to make individual comments easier to see.

mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-ThreadedDiscussions.css&action=raw&ctype=text/css', 'text/css');

Or if you prefer to add this to your custom CSS:

@import "//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-ThreadedDiscussions.css&action=raw&ctype=text/css";

Adds a delta button on diff pages that shows changes inline, sort of like how Google Docs does it.

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEdDiff.js&action=raw&ctype=text/javascript');