Difference between revisions of "User:T burnout/common.js"

From Hobowars Wiki
Jump to: navigation, search
m (test)
m (test)
Line 1: Line 1:
mw.toolbar.removeButton({
+
/* Remove Default Buttons */
 +
#mw-editbutton-italic({"display:none"});
 +
#mw-editbutton-link({"display:none"});
 +
#mw-editbutton-extlink({"display:none"});
 +
#mw-editbutton-headline({"display:none"});
 +
#mw-editbutton-image({"display:none"});
 +
#mw-editbutton-bold({"display:none"});
 +
#mw-editbutton-media({"display:none"});
 +
#mw-editbutton-math({"display:none"});
 +
#mw-editbutton-nowiki({"display:none"});
 +
#mw-editbutton-signature({"display:none"});
 +
#mw-editbutton-hr({"display:none"});
 +
 
 +
mw.toolbar.addButton({
 
imageId: 'mw-editbutton-bold',
 
imageId: 'mw-editbutton-bold',
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Button_running_header.svg/23px-Button_running_header.svg.png",
+
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a2/SmallcapsButton.png",
     "speedTip": "rawr",
+
     "speedTip": "xxx",
 
     "tagOpen": "'''",
 
     "tagOpen": "'''",
 
     "tagClose": "'''",
 
     "tagClose": "'''",
     "sampleText": "rawr text"});
+
     "sampleText": "xxx text"});

Revision as of 10:00, 22 July 2014

/* Remove Default Buttons */
#mw-editbutton-italic({"display:none"});
#mw-editbutton-link({"display:none"});
#mw-editbutton-extlink({"display:none"});
#mw-editbutton-headline({"display:none"});
#mw-editbutton-image({"display:none"});
#mw-editbutton-bold({"display:none"});
#mw-editbutton-media({"display:none"});
#mw-editbutton-math({"display:none"});
#mw-editbutton-nowiki({"display:none"});
#mw-editbutton-signature({"display:none"});
#mw-editbutton-hr({"display:none"});

mw.toolbar.addButton({
imageId: 'mw-editbutton-bold',
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a2/SmallcapsButton.png",
     "speedTip": "xxx",
     "tagOpen": "'''",
     "tagClose": "'''",
     "sampleText": "xxx text"});