Jump to navigation Jump to search

You are not logged in. Please consider registering an account. By having a StrategyWiki account, you can have your own user page, upload images for your guide, and even customize the look of the site to match your tastes! Also, another benefit of registering an account is that your IP address is not logged whenever you edit, so it adds security and privacy as well. Sign up today! It takes less than one minute and requires no personal information — you're not even required to provide an e-mail address!

If you choose not to register, don't worry! You can still edit StrategyWiki all the same, just with fewer luxuries than registered users have. Your IP address will be recorded in this page's edit history, you must use the Show Preview feature to check over your work before being allowed to save your changes, and your edit may be scrutinized a bit more than that of a registered user's edit. If you don't wish any of the preceding things to happen to you or your edit, please log in or register. Please make sure that you are following all applicable policies and guidelines when making your edit, and we hope that you continue to contribute to StrategyWiki in the future!

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
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/dolphin.js]]), then clear your browser cache.
{{User:Ryan Schmidt/UserNav}}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.
 
== Current Scripts ==
These scripts are all designed to be used in recent versions of MediaWiki which have the ResourceLoader. For best results use MediaWiki 1.20 or newer. All scripts are self-contained and do not require any extra work on your part besides enabling it in your user js page.
 
=== 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.
 
This is available as a [[Special:Preferences|Gadget]] on StrategyWiki, so the manual loading should only be necessary if you wish to test development versions (if applicable) or you wish to load it on a different wiki.
<pre>
// AJAX Patrol script
// by Skizzerz
// Uncomment the following line if you do NOT wish to have this script
// automatically load the next diff when the patrol is finished.
//var AjaxPatrolAutoNext = false;
mw.loader.load( 'http://strategywiki.org/w/index.php?title=User:Skizzerz/Scripts/AjaxPatrol.js&action=raw&ctype=text/javascript' );
</pre>
 
=== Edit Summary Warning Nullify ===
Nullifies the edit warning when you enter a blank summary
<pre>
/*********************************
** Edit Summary Warning Nullify **
*********************************/
function check_edit_summary(event) {
  return;
}
</pre>
 
=== Recent Changes Patrol ===
Adds a new "Patrol" tab on [[Special:RecentChanges]] and [[Special:BlankPage]] which loads an AJAX patrol interface to automatically step through all the pending diffs in recent changes (oldest first).
 
This script is still experimental and is in early alpha. Please report any bugs or feature requests to my [[User talk:Skizzerz|talk page]].


<pre>
==IMPORTANT: Before adding any of the below==
// Recent Changes Patrol script
Before using any of the scripts below, make sure that you put this at the very '''top''' of your BlueCloud.js page.
// by Skizzerz
mw.loader.load( 'http://strategywiki.org/w/index.php?title=User:Skizzerz/Scripts/RcPatrol.js&action=raw&ctype=text/javascript' );
</pre>
 
== Legacy Scripts ==
These scripts likely do not work anymore and were made for ancient versions of MediaWiki. The useful ones will eventually get updated.
 
===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.
<pre>
<pre>
//Common library functions used by many of the scripts below
//Common library functions used by many of the scripts below
importScript('User:Skizzerz/Scripts/library.js');
importScript('User:Ryan Schmidt/Scripts/library.js');
</pre>
</pre>


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


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


=== Find-and-replace script ===
== 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).
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).
<pre>
<pre>
//Find and replace script
//Find and replace script
//by Zocky
//by Zocky
importScript('User:Skizzerz/Scripts/SearchBox.js');
importScript('User:Ryan Schmidt/Scripts/SearchBox.js');
</pre>
</pre>


=== QuickDelete ===
== Edit Summary Warning Nullify ==
Nullifies the edit warning when you enter a blank summary
<pre>
/*********************************
** Edit Summary Warning Nullify **
*********************************/
function check_edit_summary(event) {
  return;
}
</pre>
 
== QuickDelete ==
Changes the link of the 'delete' tab from the confirmation page to a javascript prompt for faster deletion.
Changes the link of the 'delete' tab from the confirmation page to a javascript prompt for faster deletion.
<pre>
<pre>
//QuickDelete for sysops
//QuickDelete for sysops
//Change the following three lines to modify the delete reasons, remember to use + for spaces
importScript('User:Ryan Schmidt/Scripts/QuickDelete.js');
var qdId = ['spamvand', 'test', 'request'];
var qdText = ['Spam/Vandalism', 'Test+page,+please+use+the+[[StrategyWiki:Sandbox|sandbox]]', 'Author+request'];
var qdDisp = ['Spam/Vandalism', 'Test', 'Author request'];
importScript('User:Skizzerz/Scripts/QuickDelete.js');
</pre>
</pre>


===LiFilter===
==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.
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.


Line 91: Line 57:
//LiFilter script for Logs
//LiFilter script for Logs
//by Splarka
//by Splarka
importScript('User:Skizzerz/Scripts/LiFilter.js');
importScript('User:Ryan Schmidt/Scripts/LiFilter.js');
</pre>
</pre>


===Whois IP===
==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.
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.


Line 102: Line 68:
//Whois IP script
//Whois IP script
//by Splarka
//by Splarka
importScript('User:Skizzerz/Scripts/WhoisIP.js');
importScript('User:Ryan Schmidt/Scripts/WhoisIP.js');
</pre>
 
===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).
 
<pre>
//AJAX Watch script
importScript('User:Skizzerz/Scripts/AjaxWatch.js');
</pre>
</pre>


== More? ==
== 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 [[User talk:Skizzerz|talk page]] and I'll attempt to write it :)
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 [[User talk:Ryan Schmidt|talk page]] and I'll attempt to write it :)
Please note that all contributions to StrategyWiki are considered to be released under the Creative Commons Attribution-ShareAlike (see StrategyWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!
Cancel Editing help (opens in new window)

Notice to contributors: The StrategyWiki administration does not condone plagiarism or the use of materials from any other source. Period. By saving this page you are promising us that you wrote this yourself, or copied it from a public domain or similar free resource. With the exception of official media (screenshots, artwork, symbols, etc., but not text) and materials released under the CC-BY-SA you must have the rights to or ownership of all work you submit to StrategyWiki. Do not copy text or images from other websites without permission. They will be deleted.

Copy and paste: – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §   Sign your posts on talk pages: ~~~~   Cite your sources: <ref></ref>


{{}}   {{{}}}   |   []   [[]]   [[Category:]]   #REDIRECT [[]]   &nbsp;   <s></s>   <sup></sup>   <sub></sub>   <code></code>   <pre></pre>   <blockquote></blockquote>   <ref></ref> <ref name="" />   {{Reflist}}   <references />   <includeonly></includeonly>   <noinclude></noinclude>   {{DEFAULTSORT:}}   <nowiki></nowiki>   <!-- -->   <span class="plainlinks"></span>


{{Header Nav|game={{subst:BASEPAGENAME}}}}   {{Footer Nav|game={{subst:BASEPAGENAME}}|prevpage=|nextpage=}}   {{spoilers}}   {{spoiler|}}   {{delete|Unused}}   {{rename|MS Monster .png}}   {{floatingtoc}}   {{stub}}


Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶   # ∞   ‘ ’ “ ” ‹› «»   ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥   ♠ ♣ ♥ ♦   ♭ ♯ ♮   © ® ™
Latin: A a Á á À à  â Ä ä Ǎ ǎ Ă ă Ā ā à ã Å å Ą ą Æ æ Ǣ ǣ   B b   C c Ć ć Ċ ċ Ĉ ĉ Č č Ç ç   D d Ď ď Đ đ Ḍ ḍ Ð ð   E e É é È è Ė ė Ê ê Ë ë Ě ě Ĕ ĕ Ē ē Ẽ ẽ Ę ę Ẹ ẹ Ɛ ɛ Ǝ ǝ Ə ə   F f   G g Ġ ġ Ĝ ĝ Ğ ğ Ģ ģ   H h Ĥ ĥ Ħ ħ Ḥ ḥ   I i İ ı Í í Ì ì Î î Ï ï Ǐ ǐ Ĭ ĭ Ī ī Ĩ ĩ Į į Ị ị   J j Ĵ ĵ   K k Ķ ķ   L l Ĺ ĺ Ŀ ŀ Ľ ľ Ļ ļ Ł ł Ḷ ḷ Ḹ ḹ   M m Ṃ ṃ   N n Ń ń Ň ň Ñ ñ Ņ ņ Ṇ ṇ Ŋ ŋ   O o Ó ó Ò ò Ô ô Ö ö Ǒ ǒ Ŏ ŏ Ō ō Õ õ Ǫ ǫ Ọ ọ Ő ő Ø ø Œ œ   Ɔ ɔ   P p   Q q   R r Ŕ ŕ Ř ř Ŗ ŗ Ṛ ṛ Ṝ ṝ   S s Ś ś Ŝ ŝ Š š Ş ş Ș ș Ṣ ṣ ß   T t Ť ť Ţ ţ Ț ț Ṭ ṭ Þ þ   U u Ú ú Ù ù Û û Ü ü Ǔ ǔ Ŭ ŭ Ū ū Ũ ũ Ů ů Ų ų Ụ ụ Ű ű Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ   V v   W w Ŵ ŵ   X x   Y y Ý ý Ŷ ŷ Ÿ ÿ Ỹ ỹ Ȳ ȳ   Z z Ź ź Ż ż Ž ž   ß Ð ð Þ þ Ŋ ŋ Ə ə   {{Unicode|}}
Greek: Ά ά Έ έ Ή ή Ί ί Ό ό Ύ ύ Ώ ώ   Α α Β β Γ γ Δ δ   Ε ε Ζ ζ Η η Θ θ   Ι ι Κ κ Λ λ Μ μ   Ν ν Ξ ξ Ο ο Π π   Ρ ρ Σ σ ς Τ τ Υ υ   Φ φ Χ χ Ψ ψ Ω ω   {{Polytonic|}}
Cyrillic: А а Б б В в Г г   Ґ ґ Ѓ ѓ Д д Ђ ђ   Е е Ё ё Є є Ж ж   З з Ѕ ѕ И и І і   Ї ї Й й Ј ј К к   Ќ ќ Л л Љ љ М м   Н н Њ њ О о П п   Р р С с Т т Ћ ћ   У у Ў ў Ф ф Х х   Ц ц Ч ч Џ џ Ш ш   Щ щ Ъ ъ Ы ы Ь ь   Э э Ю ю Я я   ́
IPA: t̪ d̪ ʈ ɖ ɟ ɡ ɢ ʡ ʔ   ɸ β θ ð ʃ ʒ ɕ ʑ ʂ ʐ ç ʝ ɣ χ ʁ ħ ʕ ʜ ʢ ɦ   ɱ ɳ ɲ ŋ ɴ   ʋ ɹ ɻ ɰ   ʙ ⱱ ʀ ɾ ɽ   ɫ ɬ ɮ ɺ ɭ ʎ ʟ   ɥ ʍ ɧ   ʼ   ɓ ɗ ʄ ɠ ʛ   ʘ ǀ ǃ ǂ ǁ   ɨ ʉ ɯ   ɪ ʏ ʊ   ø ɘ ɵ ɤ   ə ɚ   ɛ œ ɜ ɝ ɞ ʌ ɔ   æ   ɐ ɶ ɑ ɒ   ʰ ʱ ʷ ʲ ˠ ˤ ⁿ ˡ   ˈ ˌ ː ˑ ̪   {{IPA|}}

Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Please note:
  • If you don't want your writing to be edited mercilessly or redistributed by others, do not submit it.
  • Only public domain resources can be copied without permission — this does not include the vast majority of web pages or images.
  • See our policies and guidelines for more information on editing.