User:Unit388/gloo.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Unit388/gloo. |
//<source lang="javascript">
/* ======================================================== *\
** 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.
** (Server interaction not currently present and may not ever
** be present)
**
** ====================================================== **
** igloo anti-vandalism tool for Wikipedia
** based off of the script igloo by Alex Barley
** By: User:Kangaroopower
**
** For instructions, see [[Wikipedia:Igloo]]
** ====================================================== **
**
** You may copy, modify and distribute this software as
** desired, providing that all previous contributors retain
** correct attribution.
**
** ====================================================== **
** tracker: [[Wikipedia:Igloo]]
\* ======================================================== */
var iglooBranch = window.iglooBranch || 'master';
function iglooImport( page, remote ) {
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;
}
var script = document.createElement ( 'script' );
script.setAttribute ( 'src', url );
script.setAttribute ( 'type', 'text/javascript' );
document.getElementsByTagName ( 'head' )[0].appendChild ( script );
return script;
}
iglooImport ('https://raw.github.com/Kangaroopower/Igloo/'+iglooBranch+'/lib/flash.js', true);
iglooImport ('https://raw.github.com/Kangaroopower/Igloo/'+iglooBranch+'/lib/jin.js', true);
iglooImport ('https://en.wikipedia.org/wiki/User:Unit388/src/glooInterfaceHook.js', true);
//</source>