User:Naista2002/common.js

/* Counts all your edits and saves them to a page ( http://en.wikipedia.org/wiki/User:Kanegasi/editcounter ) */ if (mw.config.get('wgTitle') === mw.config.get('wgUserName') && mw.config.get('wgNamespaceNumber') === 2) { /* begin options */

var pageName = 'Edits';

var subPages = 'true'; var datePageName = 'Date'; var totalPageName = 'Total';

var summaryLink = '';

var tableCaption = 'Naista2002\'s edits'; var tableHeaders = true;

var mainTableAttrib = 'class="wikitable" style="margin: 0 auto 1em; text-align: center"'; var topRowAttrib = 'style="background-color: blue"'; var bottomRowAttrib = 'style="background-color: white; font-size: large"';

var dateFormat = 'F j, Y';

/* end options */ mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Kanegasi/editcounter.js&action=raw&ctype=text/javascript'); }

/* WikiFicator for WikiEditor */ if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) { mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Wikificator.js&action=raw&ctype=text/javascript' ); }

var customizeToolbar = function { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {       'section': 'advanced',        'group': 'format',        'tools': {                'wikify': {                        label: 'Wikificator',                        type: 'button',                        icon: '//upload.wikimedia.org/wikipedia/commons/0/06/Wikify-toolbutton.png',                             action: {                                  type: 'callback',                                       execute: function(context){                                              Wikify;                                       }                              }                }        } } ); };

if ( $.inArray( mw.config.get( 'wgAction' ), ['edit', 'submit'] ) !== -1 ) { mw.loader.using( 'user.options', function {                if ( mw.user.options.get('usebetatoolbar') ) {                        mw.loader.using( 'ext.wikiEditor.toolbar', function  { $(document).ready( customizeToolbar ); } );               }        } ); }