User:Plkrtn/Anti-vandal tool

From Lostpedia

Jump to: navigation, search
Shortcut:
WP:LAVT

Lupin's anti-vandal tool is a tool that will catch and beat what the other tools miss. By using the RC feed to check diffs against a list of common vandal terms, this tool will catch many common vandalisms.

Contents

Installation

Copy the following content into your lostbook.js file. After it is saved, press CTRL+F5 (CMD+F5 for Mac OSX) to reload the lostbook.js file. The "l" in "lonobook.js" must be lowercase or this won't work!

importScript("User:Plkrtn/recent2.js");

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

If you want to use the script on another wiki, you can find the code to use in your lostbook.js file by first using the above instructions on this wiki, then copying and adapting the resulting code. You'll also have to copy and adapt the script for your wiki.

Usage

There should now be five new items in your toolbox:

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:{Plkrtn/badwords]]). If you select "All recent changes" then (nearly) every edit is listed, and if you click "Recent IP edits" then only edits by so-called anonymous IP editors are 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".

Tips

By default, all links created by the tool open in new windows (except the show/hide details links). If you want them to open in new tabs instead, the procedure for Firefox 2 is as follows:

  1. Select Tools → Options...
  2. If necessary, select the Tabs icon at the top of the Options dialog box.
  3. Under "New pages should be opened in", select "a new tab".

In Firefox 1.5, the procedure is as follows:

  1. Select Tools → Options...
  2. If necessary, select the Tabs icon at the top of the Options dialog box.
  3. Check "Force links that open new windows to open in:"
  4. Select "a new tab"

The following is the procedure for Firefox versions older than version 1.5:

  1. Type about:config in the location bar, filter for showsingle and set browser.tabs.showSingleWindowModePrefs to true
  2. Edit Firefox's preferences in Advanced → Tabbed Browsing and force links that open in new windows to open in new tabs.

Note: This option is hidden by default in older versions because it may not be completely stable.

Bugs and limitations

Wikipedia's RSS feed may have holes, although thanks to Tim Starling it should now have reasonable coverage. However, this tool will only examine edits sampled from that feed every 30 seconds, so it may miss some edits.

Some users' rollback button may not work if non-admin rollback is checked off.

Compatibility

Browsers

This tool has been tested with Mozilla Firefox and Opera, and has had limited testing with Internet Explored and Konqueror. It also seems to now work with Safari and Camino.

Wikipedia skins

A "Filter recent changes" link will only appear in the default monobook skin. However, you can visit the page User:Plkrtn/Filter recent changes in any skin and the tool should work.