This page lists some of the scripts I've created for myself (and sometimes for other users).

Scripts edit

Libraries edit

Script Depends on Description
bench.js (d)
  • easydom.js
Provides timeFunction() and compareFunctions() to allow comparative benchmarking of JavaScript code. The compareFunctions() function returns a table DOM element that can be placed into a page to display the test results.
build-urls.js (d) Provides functions for building MediaWiki action URLs.
cookies.js (d) Yet another cookie handling script.
easydom.js (d) See User:Mike Dillon/Easy DOM.
easydom-dev.js (d) See User:Mike Dillon/Easy DOM.
easydom-ext.js (d)
  • easydom.js
See User:Mike Dillon/Easy DOM.
i18n.js (d) Internationalization/localization framework for JavaScript interface messages. Provides wfMsg(), wfMsgForContent(), and wfAddMsg().
namespaces.js (d) Provides variables for Wikipedia namespace numbers, number to name lookup, and functions for deriving the namespace number and name from a page title. I may make this into a patch for Skin.php at some point.
navbox.js (d)
  • easydom.js
Provides addNavbox() function for adding boxes after the "Toolbox" on the navigation bar. Provides addToggleNavbox() for adding collapsible navboxes.
params.js (d) Provides functions for extracting parameters from URL query strings: getParameterMap(), getParameter(), getParameterValues(), and getParameterNames().
username.js (d) Provides getUsernameForCurrentPage(). Returns the username associated with the current page for any page in the "User" or "User talk" namespaces as well as the Special:Contributions page. Use wgUserName to get the name of the user viewing the page.

Modules edit

Script Depends on Description
aiv.js (d)
  • tabs.js
  • username.js
Adds an "AIV" tab for reporting the user whose page is currently being viewed at WP:AIV. Triggered on all pages in the "User:" and "User talk:" namespaces, in addition to "Special:Contributions". Created for User:Amarkov.
convert-brewbox.js (d) Converts brewboxes from using {{brewbox_begin}} and related templates to using {{Infobox Brewery}}.
defaultsort.js (d)
  • easydom.js
  • i18n.js
Provides form-based interface for adding and editing the {{DEFAULTSORT:...}} tag.
duplicateTabs.js (d) Clones tabs to the bottom of the content area.
easydom-console.js (d)
  • easydom.js
  • easydom-ext.js*
See User:Mike Dillon/Easy DOM.
highlightNonIPA.js (d)
  • i18n.js
Highlights non-IPA characters contained in IPA blocks created by {{IPA}}, {{IPA2}}, and {{IPA3}}.
imageLinksByNs.js (d)
  • easydom.js
  • namespaces.js
Splits up the "File links" section of an image description page by namespace and alphabetizes the sublists.
preloadNewArticle.js (d)
  • easydom.js
  • i18n.js
Detects when a new article is being edited and provides a dropdown list of templates to preload. Configure options using the preloadNewArticleOptions hash. Based on request by User:Haseler at Wikipedia:Requested templates#New Article.
recentpages.js (d)
  • cookies.js
  • i18n.js
  • easydom.js
Adds a "Page history" portlet to the sidebar that provides links to recently visited pages (stored in a cookie). Defaults to 10 recent pages and a cookie that expires on browser close.
replace.js (d)
  • cookies.js
  • i18n.js
Adds a "Regex replace" link to the Toolbox that allows for search and replace functionality with regular expressions. The last search and replace terms are stored across searches in a cookie until the browser is closed.
searchNewWindow.js (d)
  • easydom.js
  • i18n.js
Adds a "New window?" checkbox to the search navbox to allow the "Go" and "Search" buttons to open in a new window. Can be defaulted to on by setting the searchNewWindowDefault variable to true.
tabs.js (d)
  • i18n.js
Local version of Wikipedia:WikiProject User scripts/Scripts/Add tab.

Enhances addTab() to add new tabs to the bottom tab list if it is called after the tabs have been cloned (no effect if tabs aren't cloned). Adds "purge" and "last diff" tabs, per my preference.

toolboxLogLinks.js (d)
  • i18n.js
  • username.js
Adds a link to Special:Log for page logs on all pages. Adds a link to Special:Log for user log on user pages.
toolboxTool2Link.js (d)
  • i18n.js
  • username.js
Adds a link to the User:Interiot/Tool2/code.js edit counter on user pages.

* Optional dependency

Users edit

If you're using one or more of these scripts, please list yourself below along with which scripts you're using so that I can notify you if I need to make significant changes. Or just put this page or the script(s) you use on your watchlist and be forewarned that I might break something without telling you.

Add yourself below using your signature
  1. All scripts - Mike Dillon 02:03, 31 December 2006 (UTC)
  2. Some - -N 15:20, 23 June 2007 (UTC)

See also edit