User:Andrew Powers/Scripts/emotetoolbar.js
Appearance
(Redirected from User:Andrew J Powers/Scripts/emotetoolbar.js)
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Andrew Powers/Scripts/emotetoolbar. |
if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$( document ).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'sections': {
'emoticons': {
'type': 'toolbar',
'label': 'Emoticons'
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'groups': {
'emoticons': {
'label': 'Emoticons'
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'smile': {
label: 'Smile',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'frown': {
label: 'Frown',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/0/06/Face-sad.svg/25px-Face-sad.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-sad.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'plain': {
label: 'Plain',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Face-plain.svg/25px-Face-plain.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-plain.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'wink': {
label: 'Wink',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'tongue': {
label: 'Tongue',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Face-tongue.svg/25px-Face-tongue.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-tongue.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'surprised': {
label: 'Surprised',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-surprise.svg/25px-Face-surprise.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-surprise.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'confused': {
label: 'Confused',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Face-confused.svg/25px-Face-confused.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-confused.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'grin': {
label: 'Grin',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/25px-Face-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'braces': {
label: 'Braces grin',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Face-grin-braces.svg/25px-Face-grin-braces.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin-braces.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'crying': {
label: 'Crying',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Face-crying.svg/25px-Face-crying.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-crying.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'blush': {
label: 'Blush',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Face-blush.svg/25px-Face-blush.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-blush.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'laughing': {
label: 'Laughing',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Face-smile-big.svg/25px-Face-smile-big.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile-big.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'kiss': {
label: 'Kiss',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Face-kiss.svg/25px-Face-kiss.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-kiss.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'glasses': {
label: 'Glasses',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Face-glasses.svg/25px-Face-glasses.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-glasses.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'nerd': {
label: 'Nerd',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Face-grin_expert.svg/25px-Face-grin_expert.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin_expert.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'angel': {
label: 'Angel',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Face-angel.svg/25px-Face-angel.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-angel.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'devil': {
label: 'Devil',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Face-devil-grin.svg/25px-Face-devil-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-devil-grin.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'monkey': {
label: 'Monkey',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-monkey.svg/25px-Face-monkey.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-monkey.svg|20px]]"
}
}
}
}
} );
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'718': {
label: '718 Smiley',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/718smiley.svg/25px-718smiley.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:718smiley.svg|20px]]"
}
}
}
}
} );
} );
}