Jump to content

User:Animum/Scripts

From Wikipedia, the free encyclopedia

This page is an index of all the scripts I've created and found useful.

Except where otherwise noted, the scripts on this page have been tested in the monobook skin only. If you want to use one of these scripts in the Modern skin, you can enable the Modern compatibility gadget in your preferences; but this is not a guaranteed remedy.

Administrative scripts

[edit]

Blocking

[edit]
  • EasyBlock (source) gives admins—and only admins—a "block" tab with a drop-down list of block options. When you click on an option, it blocks the user and gives the appropriate notification template. See the documentation page for a more detailed description.

Deleting

[edit]
  • User:Animum/massdelete.js gives admins a form on Special:MassDelete, which will only have anything useful in it if you have the script installed, to delete multiple pages very quickly (only tested in the cologneblue and monobook skins).

Protecting

[edit]

Sorry, none as of yet.

User rights

[edit]

For everyone

[edit]

Browsing

[edit]
  • User:Animum/avoidpage.js will make your browser go back one page if you try to go to pages you want to avoid. It's not very practical, but theoretically it would be a good way to make edit-warriors cool down. (Remember not to tell them that they could just disable JavaScript. )
  • User:Animum/liveclock.js gives you an automatically updated UTC clock to the right of the "logout" button. It has a stabilizer that should make it never more than a few milliseconds ahead of the actual time.

Getting user information

[edit]
  • User:Animum/count.js gives users a "/" tab that will display the total number of edits the user whose user (talk) page or contributions page you are viewing has made.
  • User:Animum/usergroups.js gives users a "$" tab that will display the groups of which the user whose user (talk) page page you are viewing is a member. If the user is a sysop or bureaucrat, this script has the capability to find the RfA or RFB.

Reversion

[edit]
  • User:Animum/moveRV.js will give users a "pagemove" tab when viewing the move log page of a user.
    • For admins, there is User:Animum/moveRV-severe.js, for severe page-move vandalism, which will give you a "pagemove-severe" tab and, in addition to reverting the moves, will block the user with the allow-usertalk option disabled.
      • Please note that several users have encountered problems with these two scripts. Do not use it unless there is no other option, and then only use it prudently.
  • User:Animum/simpleRevert.js gives users "revert" links on the diff screen and Special:Contributions entry of the most recent edit to a page and "revert-to" links on prior diff screens and history pages. See the source page for directions on installation and configurable preferences. This script is not as fast as, say, Twinkle because it's mainly for users who do small-wiki monitoring, which is why the script itself is on Meta; but it's just convenient to have it listed here with everything else.

Other

[edit]
  • User:Animum/todo.js gives users a "todo" tab and displays an alert box with the to-do items. See the script's page for a detailed how-to.
  • User:Animum/rfavote.js is a joke script (please do not take its advice seriously!) that gives you a random vote and rationale for RfAs when you click on the "rfavote" tab.
  • User:Animum/reset.js resets the sandbox when you click on the "reset" tab or "Reset the Sandbox" link in the toolbox. (Both of these links will not appear unless you've installed the script.)
  • User:Animum/watchlistUpdate.js gives an "auto-update" tab that, when clicked, will make the script check for updates to the pages on Special:Watchlist every 5 seconds. (The time can be set to a different value by adding var updateSeconds = TIME IN SECONDS; to your monobook file.) The update notification includes a link to the page, a diff link, the standard userlinks seen on diff screens, the summary of the edit, and a rollback link (if you have the rollback permission). This script is quite useful for monitoring such pages as AIV or UAA.

Libraries

[edit]
  • User:Animum/formatresponse.js "formats" the JSON responses from the API so that you won't have to use a for() loop to access the data. See some of my scripts listed above for examples of how to use it.
  • User:Animum/urlparameters.js gets the data after the equals-sign in a URL parameter. For example, when you're editing a page, UrlParameters["action"] would return "edit". (Yes, it's UrlParameters["foo"], not UrlParameters("foo").)