User:Sfan00 IMG/twinkle legacy.js

/* This is my testversion of AzaToth's Twinkle. I use it to test Safari compatibility.
 * It uses a hack to force a loadsequence for webkit users.
 * https://bugs.webkit.org/show_bug.cgi?id=28328 */

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( morebits_js_loaded ) != 'undefined' && morebits_js_loaded ) { clearInterval( interval_id ); }   interval_count++; }