User:Ilmari Karonen/editbutton user.js
From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Mozilla/Safari: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Internet Explorer: press Ctrl-F5, Opera/Konqueror: press F5.
// add a user link button to the edit page toolbar <pre><nowiki> if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_user.png", "speedTip": "User link", "tagOpen": "{{subst:user|", "tagClose": "}}", "sampleText": "Example"}; }; // </nowiki></pre>