User:Ryan Schmidt/Scripts

This is a repository of various javascript tools that may be useful to you when editing and such. To get these tools, put the javascript in your user js (usually Special:Mypage/bluecloud.js), then clear your browser cache.

IMPORTANT: Before adding any of the below
Before using any of the scripts below, make sure that you put this at the very top of your bluecloud.js page. //Common library functions used by many of the scripts below importScript('User:Ryan Schmidt/Scripts/library.js');

Edit section link for the top section
Adds an edit link that lets you section edit the very top section. //Add section edit link for the top section importScript('User:Ryan Schmidt/Scripts/TopSection.js');

Auto-edit script
Enables an auto-clicking script //Auto-edit script //by Lupin importScript('User:Ryan Schmidt/Scripts/Autoedit.js');

Find-and-replace script
Enables a search-and-replace function for the edit box, including regular expression searches. A small magnifying glass icon will appear on the left side of the macro buttons (the lightblue images above the edit box). //Find and replace script //by Zocky importScript('User:Ryan Schmidt/Scripts/SearchBox.js');

Edit Summary Warning Nullify
Nullifies the edit warning when you enter a blank summary /********************************* function check_edit_summary(event) { return; }
 * Edit Summary Warning Nullify **

QuickDelete
Changes the link of the 'delete' tab from the confirmation page to a javascript prompt for faster deletion. //QuickDelete for sysops //Change the following three lines to modify the delete reasons, remember to use + for spaces var qdId = ['spamvand', 'test', 'request']; var qdText = ['Spam/Vandalism', 'Test+page,+please+use+the+sandbox', 'Author+request']; var qdDisp = ['Spam/Vandalism', 'Test', 'Author request']; importScript('User:Ryan Schmidt/Scripts/QuickDelete.js');

LiFilter
Adds a filter tab to Special:Log for filtering and highlighting of results. Clicking the tab shows the filter options, and clicking again hides them. The rights log has additional filtering options. For BlueCloud skin only.

Credit goes to Splarka for making this fine script.

//LiFilter script for Logs //by Splarka importScript('User:Ryan Schmidt/Scripts/LiFilter.js');

Whois IP
This script adds a "whois" tab on Special:Contributions pages for IPs that link to a whois website to obtain DNS data on the IP. The link will automatically open in a new window/tab on a left click. For BlueCloud skin only.

Credit for this script goes to Splarka

//Whois IP script //by Splarka importScript('User:Ryan Schmidt/Scripts/WhoisIP.js');

AJAX Patrol
This script allows you to patrol pages via AJAX instead of having to load the patrol successful page and navigate back in order to get to the next diff. This script was created by myself. Should work on all skins.

//AJAX Patrol script //Uncomment the following line if you wish to have this script //automatically load the next diff when the patrol is finished (if applicable). //AjaxPatrolAutoNext = true; importScript('User:Ryan Schmidt/Scripts/AjaxPatrol.js');

AJAX Watch
This script allows you to watch and unwatch pages via AJAX (like how the watch/unwatch tab works on Wikipedia). This script was created by myself and only works on BlueCloud (Monobook should already have AJAX page watching anyway).

//AJAX Watch script importScript('User:Ryan Schmidt/Scripts/AjaxWatch.js');

More?
Want something that's not listed here? Try searching for it on Google or some other search engine and if you still can't find it, feel free to drop a message on my talk page and I'll attempt to write it :)