Jump to content

User:Hafspajen/common.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.
importScript('User:Shubinator/DYKcheck.js');
/**
 * Extra buttons in toolbar
 * @stats [[File:Krinkle_InsertWikiEditorButton.js]]
 */
jQuery.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', function () {
 
        // Reflist
        krInsertWikiEditorButton({
                "id": "mw-customeditbutton-myspecialbutton",
                "icon": '//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Gnome-face-monkey.svg/22px-Gnome-face-monkey.svg.png',
                "label": 'Insert ref',
                "insertBefore": ".<ref>{{cite web|url=|title=|publisher=|accessdate=}}</ref>\n\n",
        });
 
});