User:Ale jrb/Scripts/igloo.js: Difference between revisions

Content deleted Content added
Ale jrb (talk | contribs)
update
Ale jrb (talk | contribs)
moved -> perform import
 
(4 intermediate revisions by the same user not shown)
Line 1:
/* == ====================================================== **\
** 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]]
** ====================================================== **
**
Line 23 ⟶ 13:
\* ======================================================== */
 
/* igloo has moved to the project space: [[Wikipedia:Igloo]]! */
function iglooImport( page, remote, id ) {
if ( ( remote == null ) || ( remote == false ) ) {
var url = wgScript + '?action=raw&ctype=text/javascript&nocache=true&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;
}
 
importScript('Wikipedia:Igloo/gloo.js');
if ( iglooUseDev ) {
iglooImport ( 'User:Ale_jrb/Scripts/iglooDevSettings.js' );
iglooImport ( 'User:Ale_jrb/Scripts/iglooDevInterfaceHook.js' );
} else {
iglooImport ( 'User:Ale_jrb/Scripts/iglooSettings.js' );
iglooImport ( 'User:Ale_jrb/Scripts/iglooInterfaceHook.js' );
}
iglooImport ( 'User:Ale_jrb/Scripts/Nforcer.js' );
iglooImport ( 'User:Ale_jrb/Scripts/waLib.js' );
iglooImport ( 'User:Ale_jrb/Scripts/waLib2.js ');