User:ChrisBradley/monobook.js

include_js ( "Zocky/utils" )                                     // general utils include_js ( "Zocky/moretools", "more_tools_show_block", false)  // additional toolbox

// include_js ( "Lupin/popupsdev", "popupAdminLinks", true, "popupStructure", "menus",  "popupActionsMenu", true ); // User:Lupin/popupsdev.js - please include this line

include_js ( "Zocky/imagenotes", "more_tools_show_block", false)  // teshting teshting

/////////////////////// // include function

function include_js(includedscript) { var i;  if (include_js.arguments.length>0) {   mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:'+ includedscript + '.js'                 + '&action=raw&ctype=text/javascript'); i=1; while (i < include_js.arguments.length) {     if (typeof(include_js.arguments[i]) == "string" ) {       i++; if (i < include_js.arguments.length) {         window[include_js.arguments[i-1]] = include_js.arguments[i]; i++; } else { alert ("Variable "+ include_js.arguments[i-1] +" specified, but no value provided."); return; }      } else { alert ("Bad name for variable"); return; }   }  } else { alert ("No script name provided."); } }