User:Kangaroopower/Scripts
This is where you can find all my scripts (excluding one or two I may sporadically have in development).
Scripts
MRollback
Mass Rollback script that takes up to the last 500 (customizable by you) contribs of a user and rollbacks them, complete with summary. It's popup also doubles as a failsafe that you dont accidentally click the link on an admin's contribution page ;).
To install put: importScript('User:Kangaroopower/MRollback.js'); //[[User:Kangaroopower/Scripts]] in your skin js file. (Source Code)
Ajax Move
Allows for the quick moving of pages using an ajax popup. Complete with summary. If you want to move pages from the current page to a subpage, just put / in the beginning of the to: box.
To install put: importScript('User:Kangaroopower/ajaxMove.js'); //[[User:Kangaroopower/Scripts]] in your skin js file. (Source Code)
Raw Tab
Adds a link to the raw code of js and css pages. Can be useful for just looking at plain code or getting an importscripturl link. I use it for quickly clearing the cache of my scripts.
To install put: importScript('User:Kangaroopower/rawtab.js'); //[[User:Kangaroopower/Scripts]] in your skin js file. (Source Code)
AjaxRC
Auto-Refreshes recent changes (or other pages, as per the configuration), every 60 seconds (this interval can be changed.
Configuration: You can change some settings in your JavaScript by adding some/all of the following.
- The effect can be applied to other pages by adding above the import line code similar to:
var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];
importScript('User:Kangaroopower/AjaxRC.js');
- An alternate progress indicator can be declared below the import line as such:
var ajaxindicator = 'http://images2.wikia.nocookie.net/__cb20100609110347/software/images/a/a9/Indicator.gif';
importScript('User:Kangaroopower/AjaxRC.js');
- The refresh time can be changed by adding (this changes time to 30 seconds):
var ajaxRefresh = 30000;
importScript('User:Kangaroopower/AjaxRC.js');
- To change the text of the "AJAX" or the hover information, set
AjaxRCRefreshText
andAjaxRCRefreshHoverText
before the import, like this
var AjaxRCRefreshText = 'Auto-refresh';
var AjaxRCRefreshHoverText = 'Automatically refresh the page';
importScript('User:Kangaroopower/AjaxRC.js');
- If you have functions that modify the content that's reloaded, they won't work after the first refresh unless you run them again after the content has loaded. You can do this by adding them to the
ajaxCallAgain
variable, like this:
var ajaxCallAgain = window.ajaxCallAgain || [];
window.ajaxCallAgain.push(function1, function2, function3);
importScript('User:Kangaroopower/AjaxRC.js');
To install with default settings (60 seconds interval, only refreshes Recent Changes) put: importScript('User:Kangaroopower/AjaxRC.js'); //[[User:Kangaroopower/Scripts]] in your skin js file. (Source Code)
Bugs
If you don't see these scripts in action immediately, try clearing your cache. If you still dont see anything, look in your error console (ctrl + shift + j or f12) to see if there is an error somewhere. These scripts are not fully done by any means but they should all work in chrome and probably all other webkit browsers- safari, etc. I personally don't support IE but will look into bugs there. Although I don't extensively test my scripts in firefox, they all should work there. Please message me on my talk if you need any help.