User:Mike Dillon/Scripts
Appearance
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) |
|
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) |
|
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 MediaWiki 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) |
|
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 |
---|---|---|
defaultsort.js (d) |
|
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) |
|
See User:Mike Dillon/Easy DOM. |
highlightNonIPA.js (d) |
|
Highlights non-IPA characters contained in IPA blocks created by {{IPA}} and {{IPAchar}} .
|
recentpages.js (d) |
|
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) |
|
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) |
|
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) |
|
Provides addTab() function that adds new tabs to the top and bottom tab lists 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) |
|
Adds a link to Special:Log for page logs on all pages. Adds a link to Special:Log for user log 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
- All scripts - Mike Dillon 02:03, 31 December 2006 (UTC)
See also
[edit]- wikibits.js - site-wide JavaScript that is built into MediaWiki
- MediaWiki:Common.js - site-wide JavaScript that can be modified on-wiki
- My current monobook.js, may include scripts written by others
Full list of my scripts
[edit]- Includes inactive, unmaintained, and experimental scripts