User:Haza-w/Caction tool
From Wikipedia, the free encyclopedia
User page | Talk page | Contributions | .JS | .CSS | E-mail |
|
This script adds a "page options" button (and, if applicable, a "user options" button) to the cactions toolbar. Hovering over the link brings down a menu with the following options:
User options:
|
Page options:
|
Links listed in bold replace the standard caction tabs, unless specified otherwise.
Links listed in italics are admin-only options.
Setup
To use the tool, open your monobook.js at User:YourUserName/monobook.js
and click "edit this page". (If you are using a different skin, then open your specific skin JS; the tool works in any skin.) Then add the following:
{{subst:js|User:Haza-w/cactions.js}}
Options
The following options can be configured:
- Admin: If you are an admin, add
var ctIsAdmin = 1;
into your monobook.js and the admin options will become available. - Keep original tabs: If you want the "move", "watch" etc. tabs to remain on the toolbar and not be moved into the dropdown menu, add
var ctOriginalTabs = 1;
into your monobook.js. - Add edit intro link: If you want a link to edit section 0 of a page, add
var ctEditIntro = 1;
into your monobook.js.
Interwiki support
To use this script on another wiki, add the following to your monobook.js page on that wiki:
// Script from [[:w:en:User:Haza-w/cactions.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Haza-w.debug/cactions.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); var ctWikiId = 'wikiID';
Replace wikiID with the relevant database name entry from the list below. To get another wiki added to the supported list, just ask.
Wikipedia
-
- enwiki_p (English)
- frwiki_p (French)
Wikibooks
-
- enwikibooks_p (English)
Version history
If a new version has been released but you have not seen any update, purge your cache by hitting Ctrl-F5.
Version 3
- v3.2 (believed stable) - Support for all wikis. Please see relevant section for details.
- v3.1 - Various bugfixes.
- v3.0 - New method of title parsing using URL instead of title. Now cactions work on View source pages and others with unusual titles.
Version 2
- v2.5 - Added link to user's entry in Special:Listusers
- v2.4 - Patched bug with special characters that don't work in URLs
- v2.3 - Added Mathbot's edit summary link to user opts.
- v2.2 - Interiot JS tool feature enabled, add to/remove from watchlist errors fixed
- v2.1 - New options, replace function on ":" characters in title, and some bugs fixed.
- v2.0 - New release. 1 caction for page options, 1 for user options etc. Hovering over each one brings down a list of the relevant options. Thanks for all who helped with bug reporting. :-)
Version 1
- v1.62 - Corrected error created when correcting error (see v1.61 note)
- v1.61 - Corrected error(s) in determining whether pages are special or not
- v1.6 - Added diff button to all articles (except User, User talk and Special namespaces)
- v1.5 - Added "e-mail" button
- v1.42 - Corrected bug when clicking through from previewed pages
- v1.41 - Corrected username bug when clicking through from page history
- v1.4 - Added "block log" button. IPs and usernames. Very useful when dealing with vandals.
- v1.33 - Added support for spaces in usernames (in past versions, only the first word of the username was queried)
- v1.32 - Changes in regex handling and the process which checks for user/user talk pages
- v1.31 - Corrected bug in function name
- v1.3 - New "contributions" button in addition to the "edit count" one.
- v1.2 - New layout and split order when parsing username. Improved functionality.
- v1.11 - Fixed major bug in parsing username when browsing user talk pages.
- v1.1 - Added support for user talk pages as well as user pages.
- v1.0 - Original release of caction script, which adds an "edit count" button to the cactions bar when browsing user pages.