User:Falcon Kirtaran/Scripts/igloo.js

/* ======================================================== *\ \* ======================================================== */
 * igloo frontend manager - main
 * The igloo frontend manager handles the client system,
 * displaying information to the user, as well as allowing
 * the user to interact with the program, as well as
 * handling connection and authentication with the server.
 * igloo anti-vandalism tool for Wikipedia
 * created by Alex Barley User:Ale_jrb
 * copyright (c) Alex Barley - Some Rights Reserved
 * For instructions, see User:Ale_jrb/Scripts/igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: User:Ale_jrb/Scripts/igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: User:Ale_jrb/Scripts/igloo
 * correct attribution.
 * tracker: User:Ale_jrb/Scripts/igloo
 * tracker: User:Ale_jrb/Scripts/igloo
 * tracker: User:Ale_jrb/Scripts/igloo

function iglooImport( page, remote, id ) { var c = new Date ; var cachebypass = '&killcache=' + c.getDate + c.getSeconds  + c.getMilliseconds ; if ( ( remote == null ) || ( remote == false ) ) { var url = wgScript + '?action=raw&ctype=text/javascript' + cachebypass + '&title=' + encodeURIComponent( page.replace( / /g,'_' ) ); } else { var url = page; }			if ( document.getElementById ( id ) != null ) { document.getElementById ( id ).parentNode.removeChild ( document.getElementById ( id ) ); }			var script = document.createElement ( 'script' ); script.setAttribute ( 'src', url ); script.setAttribute ( 'type', 'text/javascript' ); if ( id != null ) script.setAttribute ( 'id', id ); document.getElementsByTagName ( 'head' )[0].appendChild ( script ); return script; }

if ( typeof iglooUseDev !== 'undefined' ) { iglooImport ( 'User:Falcon_Kirtaran/Scripts/iglooDevSettings.js' ); iglooImport ( 'User:Falcon_Kirtaran/Scripts/iglooDevInterfaceHook.js' ); } else { iglooImport ( 'User:Falcon_Kirtaran/Scripts/iglooSettings.js' ); iglooImport ( 'User:Falcon_Kirtaran/Scripts/iglooInterfaceHook.js' ); }		iglooImport ( 'User:Ale_jrb/Scripts/Nforcer.js' ); iglooImport ( 'User:Ale_jrb/Scripts/waLib.js' ); iglooImport ( 'User:Ale_jrb/Scripts/waLib2.js ');