User:Janbery/common.js
Note: After publishing, 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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// <nowiki>
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Decline',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/1/13/Button_delete.png',
action: {
type: 'encapsulate',
options: {
pre: ':: \x7b\x7bDeclined}}, ',
peri: '',
post: ' --\x7E\x7E\x7E\x7E \n\n[[Category:Declined Merchandise giveaway nominations]]'
}
}
}
}
});
});
});
}
});
mw.loader.using('user.options', function() {
if(mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function() {
$(function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
group: 'format',
tools: {
buttonId: {
label: 'Approve',
type: 'button',
icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Button_article_de_qualite.png',
action: {
type: 'encapsulate',
options: {
pre: ':: \x7b\x7bapproved}} ',
peri: '',
post: ' --\x7E\x7E\x7E\x7E \n\n[[Category:Approved Merchandise giveaway nominations]]'
}
}
}
}
});
});
});
}
});
// </nowiki>