User:Liberalufp/common.js

importScript('User:Kangaroopower/MRollback.js');

importScript('User:Lupin/recent2.js'); mw.util.addPortletLink('p-cactions', 'javascript:rollbackEverything', "rollback all", "ca-rollbackeverything", "rollback all edits displayed here"); importScript('User:Kephir/gadgets/cksyntax.js'); // [[User:Kephir/gadgets/cksyntax] User:Kephir/gadgets/table-editor.js $(splitPreview.init); $.holdReady(true); mediaWiki.loader.load("https://toolserver.org/~netaction/wikitrust.js");

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Francisco_Leandro/global.js&action=raw&ctype=text/javascript');

$(function {

$('#wpTextbox1').wikiEditor('addToToolbar', {

'section': 'advanced',

'groups': {

'grpSockpuppet': {

'label': 'Sock puppet'

}

}

});

$('#wpTextbox1').wikiEditor('addToToolbar', {

'section': 'advanced',

'group': 'grpSockPuppet',

'tools': {

'btnSockpuppet': {

'label': 'Sock puppet',

'type': 'button',

'icon': '//upload.wikimedia.org/wikipedia/commons/2/28/Nonnotable.png',

'action': {

'type': 'encapsulate',

'options': {

'pre': "{" + "{sockpuppet|",

'post': "|confirmed}" + "}"

}

}

},

'btnIPSock': {

'label': 'IP sock',

'type': 'button',

'icon': '//upload.wikimedia.org/wikipedia/commons/f/f2/Button_prononciation.png',

'action': {

'type': 'encapsulate',

'options': {

'pre': "{" + "{IPsock|",

'post': "}" + "}"

}

}

},

'btnSockpuppeteer': {

'label': 'Sock puppeteer',

'type': 'button',

'icon': '//upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png',

'action': {

'type': 'encapsulate',

'options': {

'pre': "{" + "{sockpuppeteer|",

'peri': "blocked",

'post': "|checked=yes}" + "}"

}

}

},

'btnSockpuppetCategory': {

'label': 'Sock puppet category',

'type': 'button',

'icon': '//upload.wikimedia.org/wikipedia/commons/1/11/Button_category.png',

'action': {

'type': 'encapsulate',

'options': {

'pre': "{" + "{sockpuppet category|",

'post': "}" + "}"

}

}

}

}

});

});