User:Iritscen/vector.js

From OniGalore
< User:Iritscen
Revision as of 18:17, 10 May 2017 by Iritscen (talk | contribs) (removing image buttons, at least for now)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Microsoft Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// Load XEB to augment the editing toolbar; see [[XEB]] for documentation
// The onlyinclude and pre tags below allow me to transclude the enclosed code onto the XEB docs page
//<onlyinclude><pre>
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload")
{
   XEBOrder="0,1,U,S,F,I1,I2,J1,J2,D,C,D1,4,A,R1,R2,2,3,K,T,Y1,Y2,Z,E1,5,8,P,T1,O,H,FS,9,V,N,B,BF,BV";

   //myButtons=[];

   importScript('MediaWiki:Common.js/edit.js');
}//</pre></onlyinclude>

// Use test JS if we're on a test page
if (wgPageName == "User:Iritscen/TestSpace" || wgPageName == "User:Iritscen/TestSpace2")
{
   importScript("User:Iritscen/TestSpace.js");
}

// Alter the sidebar to include any handy links that only we want to see
// This code is disabled but left in place since it is referred to on [[MediaWiki:Common]]
/*addOnloadHook(function()
{
    ModifySidebar("sep", "navigation", "", "");
    ModifySidebar("add", "navigation", "Slaves of War", "http://wiki.oni2.net/Oni2:Slaves_of_War");
});*/