Gaming
 
[Kaydeethree]

Kaydeethree 21,919 edits since July 15, 2006

21,919

User:Kaydeethree/Anti-vandal tool

From WoWWiki

< User:Kaydeethree(Redirected from WW:AVT)
Image:icon-shortcut.pngShortcut: WW:AVT

This tool is a wholesale clone of WP:AVT. WoWWiki's version of the tool actually uses Philip Trueman's javascript instead of Lupin's. Use at your own risk. It mostly works except for non-admin rollback (which I'm hoping will work come the MW 1.12 upgrade).

The Anti-vandal tool checks the RC rss feed every 30 seconds against a list of common vandal terms by means of some fancy javascript.

Note that the RSS feed in 1.12a does not include .diffs of the change, so the tool's viability is significantly limited now, compared to 1.11. I've fixed the obvious bugs in monaco.

Contents

Installation

Copy the following content into your wowwiki.js file or your monaco.js file (if you're using a different theme, use the .js for your theme). After it is saved, press CTRL+F5 (CMD+F5 for Mac OSX) to reload the wowwiki.js file. The "w" in "wowwiki.js" must be lowercase or this won't work!

importedScripts = {};
 function importScript( page ) {
     if( importedScripts[page] ) {
         return;
     }
     importedScripts[page] = true;
     var url = wgScriptPath
             + '/index.php?title='
             + encodeURIComponent( page.replace( / /g, '_' ) )
             + '&action=raw&ctype=text/javascript';
     var scriptElem = document.createElement( 'script' );
     scriptElem.setAttribute( 'src' , url );
     scriptElem.setAttribute( 'type' , 'text/javascript' );
     document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );
 }
importScript("User:Kaydeethree/autoedit.js");
importScript("User:Kaydeethree/recent2.js");

Save the page and follow the instructions above the edit window to force-reload the page and clear your browser cache.

Usage

After you've successfully installed AVT, you'll see several new links in the toolbox (just below the search bar) on the left side of the screen:

When you visit these pages, a live, scrolling feed will begin. When filtering recent changes, only edits matching common vandalisms are listed (you can see this list at User:Kaydeethree/badwords). If you select "All recent changes" then (nearly) every edit is listed. "Monitor my watchlist" shows changes to your watched articles as they happen. "Live spellcheck" filters recent edits with spelling errors.

To check the contents of the entry, click on "show details". To hide that entry, click "hide details".

I tend to keep All recent changes open as the wiki doesn't move quickly enough to need the filtered list. I have yet to do any testing on the Live spellcheck feed, which I'm pretty sure isn't working yet.

Bugs and known issues

The RSS feed that recent2.js uses has hard-coded the white background into the feed itself and I'm not sure that's something I can fix from this end. The problem's been worked around by having the foreground text color in the diffs be black instead of the usual white (as in the wowwiki skin) so the text is at least visible.

The new-v1, uw-test, and uw-vand links currently don't do anything useful as there aren't equivalent user warning templates here as far as I'm aware. Templates created. See {{uw-vandalism1}}, {{uw-vandalism3}}, and {{uw-test1}} for details.

I haven't tested rolling back any vandalicious edits using the tool, so I'm not sure that works yet either. Admin rollback works. Another userscript is required to get non-admin rollback working. Non-admin rollback is not working. Waiting until the MW 1.12 upgrade before looking in to it.

I solely operate using Firefox so I have no indication as to whether this tool works in IE or not.

Other issues?

Poke me on my talk page if you've got other issues. Take a look at the original page at WP:AVT to see how this all is supposed to work too.