Jump to content

User:Zocky/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//window.onerror=function(a,b,c) {alert (a+'\n'+b+'\n'+c); return true;}

//<pre><nowiki>
// [[User:Lupin/popupsdev.js]] - please include this line 
//include_js ( "Lupin/popupsdev", "popupAdminLinks", true,  "popupStructure", "menus",   "popupActionsMenu", true );

//[[User:Zocky/PicturePopups.js]]
include_js ( "zocky/PicturePopupsVector");

// [[User:Zocky/SearchBox.js]]
include_js ( "zocky/SearchBox");

// [[User:Lupin/recentdiffs.js]] - please include this line 
// include_js ( "Lupin/recentdiffs");

//[[User:Zocky/LinkComplete.js]]
include_js ( "Zocky/LinkComplete");

//[[User:Zocky/LanguageLinks.js]]
include_js ( "Zocky/LanguageLinks");

//include_js ( "Zocky/jsSandBox");









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


function include_js(includedscript) 
{
  var i;
  if (include_js.arguments.length>0) 
  {
    document.write('<'+'script type="text/javascript" src="'
                 + 'http://en.wikipedia.org/w/index.php?title=User:'+ includedscript + '.js'
                 + '&action=raw&ctype=text/javascript&dontcountme=s"></'+'script>');
    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."); 
  }
}
//</nowiki></pre>