User:TheDJ/twinkle.js

From Wikipedia, the free encyclopedia

Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.

/* This is my testversion of AzaToth's Twinkle. I use it to test Safari 3.0 compatibility. 
  * If you have any more issues with Twinkle and Safari 3.0 please let me know and i will work on fixing it.
  * working are "csd", "prod", "last", "since", "since mine", "xfd", "rollback", "revert", "protect", "salt", "image"
  * not tested: arv */
 
importScript('User:AzaToth/morebits.js');
var interval_id = setInterval( "checkLoaded()", 50 );
var interval_count = 0;
 
function checkLoaded() {
    if( interval_count == 100 ) {
        clearInterval( interval_id );
        throw "Failed to load morebits.js (timeout after 5 seconds)";
        return;
    } else if( typeof( twinkleConfigExists ) != 'undefined' && typeof( isIPAddress ) != 'undefined' ) {
        clearInterval( interval_id );
        importScript('User:AzaToth/twinklefluff.js');
        importScript('User:AzaToth/twinklewarn.js');
        importScript('User:AzaToth/twinklearv.js');
        importScript('User:AzaToth/twinklespeedy.js');
        importScript('User:AzaToth/twinklediff.js');
        importScript('User:AzaToth/twinkleprotect.js');
        importScript('User:AzaToth/twinkleprod.js');
        importScript('User:AzaToth/twinklexfd.js');
        importScript('User:AzaToth/twinkleimage.js');
        importScript('User:AzaToth/twinkleunlink.js');
        importScript('User:AzaToth/twinkledelimages.js');
        importScript('User:AzaToth/twinkledeprod.js');
        importScript('User:AzaToth/twinklebatchdelete.js');
        importScript('User:AzaToth/twinklebatchprotect.js');
        importScript('User:AzaToth/twinkleimagetraverse.js');
        importScript('User:Ioeth/twinklerollbackintegration.js');
    }
    interval_count++;
}