Jump to content

Wikipedia:Igloo/gloo.js

From Wikipedia, the free encyclopedia
//<syntaxhighlight 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.
**
**  ======================================================  **
**      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]]
\* ======================================================== */
window.iglooBranch = 'master';
if ( ['vector'].indexOf( mw.config.get( 'skin' ) ) > -1 ) {
  mw.loader.load("//tools.wmflabs.org/igloo/code/Igloo/gloo.js");
} else {
  
  mw.log.error('Igloo is currently not supported on your skin.');
}
//</syntaxhighlight>