User:Voice of All/UsefulJS

Useful javascript for monobooks
This is a collection of scripts for the default monobook skin. Have fun :).

Please be sure to include the category for your monobook, I'd like to be able to keep track and do any bug reports if needed.

Note: (Please copy text in edit mode)


 * Special:Mypage/monobook.js

Monobook.js script (Addtabs)
Add Tabs From the user scripts project. This adds the common "Addtab" function. You NEED for the below scripts to work. It also has some other common XML stuff. (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Addtabs/monobook.js

// Helper tools document.write(' '); //

Monobook.css script (CSS Dropdown script)
Add Dropdown menus From the user scripts project. This adds the dropdown function. You NEED it for some of the below scripts to work. (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Dropdown/monobook.css

Non-admin RC Patrol JS (Stand-alone)
This adds rollback, Lupin's filter, quick AIV reporting, "restore link" to diff pages and quick warning to vandals. Note: already includes history script. Rollback now uses a method by AzaToth (WP:TWINKLE).
 * Add for non-admin RC script without lupin.


 * Add for non-admin RC script with lupin.


 * No lupin JS source (copy the above instead please): User:Voice of All/nolupin/monobook.js


 * With Lupin JS source (copy the above instead please): User:VoA/monobook.js

Admin Only JS (requires CSS dropdown script)
This includes all of the features listed here and all of the tools below, such as rollback/deletion tools, protection and warning tabs. (Please copy in edit mode)
 * Read the info here too.
 * Admin script with Lupin Lupin's popups (popupsdev version)

// Admin tools document.write(' ');

//


 * Admin script without popups

// Admin tools document.write(' ');

//


 * User:Voice_of_All/admin/monobook.js with Lupin.
 * User:Voice of All/adminnolupin/monobook.js without.

Bureaucrat Only JS (Requires Addtab)
The script below is designed for bureaucrats only. Much of it won't work for non-bureaucrats. This script includes the History analysis tools, along with "inform", "failure", and "success" tabs for RfAs. These tabs will automatically subst the page and change the tense of the header to past tense. The "Discuss/Vote here" link will be replaced with final. All you have to do is update the final tally before you click one of the close tabs.

It also reformats the main RfA (WP:RfA) page to make it easier to look through (though poorly made RfAs will stand out) unless  is added after the script.

List of all features:
 * RfA page formatting and auto-percents
 * Close tabs for RfAs, which open the respect archiving location and remove it from the RfA main page (you still have to save the pages to confirm these actions)
 * A tab to drop the candidate a message and a tab to promote the user on all RfAs (you still have to submit these)
 * A "data" tab on RfA history pages to check for suspicious behavoir

(please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Bureaucrat/monobook.js

// BCrat tools document.write(' '); //

CheckUser (or clerk) Only JS (Requires dropdown menu CSS script)(Requires Addtab)
The script below is designed for CheckUsers only. This script includes a dropdown tab for completed request templates, such as "confirmed" or "likely". It also provides case completion and archival assistance.

Note: for the cross-domain (dnsstuff.com) HTTP request info to work, you must:
 * FF/Netscape: Basically, enable "signed.applets.codebase_principal_support" in about:config (or opera:config)
 * IE: Reduce IE security settings by enabling the "accessing of data across domains". Note this does not give permission prompts, it works on ALL pages, making it fairly risky on other sites.
 * Opera: Not possible yet.

(please copy from edit mode to assure correct JS)
 * User:Voice_of_All/CheckUser/monobook.js

// Checkuser tools document.write(' '); //

Text Replace/quick redirect (Requires Addtab)
Replaces all occurrences of certain text with something else. Regex can be used if you want. (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/replacetxt.js

// Replace txt document.write(' '); //

AfD/PfD/Copyvio and tagging tabs (Requires Addtab and dropdown menu CSS script)
Tags articles and lists them at the corresponding location. This is a compilation of scripts written by myself and several other users, mainly User:Johnleemk. Adds quick tagging as well (like "POV-check"). Show/Hide closed AfDs tabs added from User:AmiDaniel. (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Deletion/monobook.js

// AfD/PfD/Copyvio and tagging tabs document.write(' '); //

History and Edit Summary Use Analysis (Requires Addtab)
Analyzes a page history when "statistics" tab is clicked. Shows a whole range of useful data. Also gives quick edit summary % usage and namespace % based on all edits appearing on the contributions page. For more info on how this works and what the reports generated mean, click here.

Specifically, this adds a "stats" tab to:
 * User contribs pages
 * The log pages for users
 * The undelete page for a deleted page (these are still a tad buggy)

(please copy from edit mode to assure correct JS)
 * User:Voice_of_All/History/monobook.js

// History tools document.write(' ');

//

New pages log and New Users log edit counters (Requires Addtab)
Check the edit count (up to 10) for authors of new pages when the tabs on the respective logs are clicked. It can also check for inactive users on the Special:Userlist. (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Sleeper/monobook.js

// Log tools document.write(' ');

//

Google searching/common spelling corrections/reference scrollbars/abbreviate (Requires Addtab)
Adds google scholar and regular google tabs to articles for a quick search launch. Disambiguated terms launch a search for the part before the parenthesis in quotes and the part in parenthesis not in parenthesis or quotes.

The spell corrector replaces all occurrences of recognized misspelled words with the proper spelling and clicks "show changes" when the tab is clicked.

References can be abbreviated in edit mode (and the preview/save buttons are locked while they are) and unnabbreviated by simply clicking the "toggle references" link in the toolbox. References in non-edit mode appear in show/hide divs. Currently, they default to show, as clicking reference numbers fails otherwise.


 * User:Voice_of_All/Google/monobook.js

// Google tools && Spelling document.write(' '); //

Diff page links
Adds adds "restore" to the left(older) version of diff pages. "Restore" can be more useful than rollback because it restored to a specific revision rather than going back to the last version not by the user who has the top edit.
 * User:Voice_of_All/Revert/monobook.js

// Diff page links document.write(' '); //

UTC clock and purge (requires Addtab)
Adds a UTC clock in the corner. I did not make the script though, (I just made it stand alone). I changed the script so that double-clicking on the time will purge the page.
 * User:Voice_of_All/UTCclock.js

// UTC clock document.write(' '); //

Bot Approvals group (requires Addtab)
Adds tabs for approving bots on the Bots/Requests for approval subpages.
 * User:Voice_of_All/Approvals.js

// BAG document.write(' '); //

Admin Protection JS (Requires Addtab)
This gives protection and semi-protection listing and de-listing tabs for pages in edit mode: (please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Protection/monobook.js

// Admin tools document.write(' '); //

Admin user warning tabs (Requires dropdown menu CSS script)(Requires Addtab)
Adds quick warning (i.e. vandalism, spam, blanking, ect...) tabs to user talk pages when in edit mode. (please copy from edit mode to assure correct JS)
 * User:Voice of All/Adminwarnings/monobook.js

// Admin warning tools document.write(' '); //

Admin rollback/deletion tools and backlog bar (Requires Addtab)

 * Adds "revert all edits", "revert all uploads", "delete all pages" and "revert all moves" to contribs/move log pages respectively and "check all revisions" to deletion restoration pages.
 * It also includes a backlog bar to Recent Changes and My watchlist that appears if any (most) page is tagged with.
 * Edits for a up to a /24 bit logged out IP range can be retrieved fairly easily (though it requres some server use)
 * Additionally, it includes a script to compare edits/blocks and get user talk interection for any two users.
 * IP range edits do have comparison support against users; though you must be ON the range page to do the comparison, unlike regular user comparison, where the starting page is irrelavent.
 * A "block all AOL" tab appears on Recent changes. This opens the block pages for all AOL ranges with "block account creation" and "anon-only" checked.
 * Different types of rollback using WP:TWINKLE.

Note: please read this.

Note: this comes with the Diff page revert tools as well. This also includes a blue "message" bar on all pages as long as a non-image related page is tagged as having a backlog. It lists all the pages on the bar (1 line usually).

Note: for HTTP request info for IP range and commons image duplicates script you must:
 * FF/Netscape: Basically, enable "signed.applets.codebase_principal_support" in about:config (or opera:config)
 * IE: Reduce IE security settings by enabling the "accessing of data across domains". Note this does not give permission prompts, it works on ALL pages, making it fairly risky on other sites.
 * Opera: Not possible yet.

(please copy from edit mode to assure correct JS)
 * User:Voice_of_All/Specialadmin/monobook.js

// Admin rollback tools document.write(' '); //