Open main menu

Changes

cleanup the Matomo code
/* Any JavaScript here will be loaded for all users on every page load. importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');*/
/* Add in the cards extension * Matomo **/mw var _paq = window.loader_paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.usingpush( ['trackPageView'ext]); _paq.cardspush([' enableLinkTracking']).done; ( function () { var gateway u= new mw"//wiki.cardsfreephile.CardsGateway( { api: new mworg/analytics/"; _paq.Apipush() } ); // ['BooksetTrackerUrl' and , u+'Phonematomo.php' are page titles, 200 is the thumbnail width in pixels]); gateway _paq.getCardspush( ['BooksetSiteId', 'Phone1']); var d=document, 200 g=d.createElement('script'), s=d.donegetElementsByTagName( function( cards 'script') {[0]; $( g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'#bodyContentmatomo.js' ); s.parentNode.appendinsertBefore( cards.$el g,s); } )();} );/** End Matomo **/
/**
* wikEd.js is a Gadget implemented at MediaWiki:Gadget-wikEd.js and in Special:Preferences
 
// install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor
(function ()
{
var script = document.createElement('script');
script.src = '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript';
script.async = true;
document.getElementsByTagName('head')[0].appendChild(script);
}
) ();
*/
/*To add <script src="https://use.fontawesome.com/14c71d3de0.js"></script>
}
}
/** jQuery( document ).ready( function CustomizeModificationsOfSidebar($ ) {
// adds [[Special:Html2Wiki]] to toolbox
ModifySidebar( 'add', 'toolbox', 'Import HTML', '/wiki/Special:Html2Wiki' );
// removes [[Special:Upload]] from toolbox // ModifySidebar( 'remove', 'toolbox', 'Upload file', 'http://en.wikipedia.org/wiki/Special:Upload' );}// for anyoneaddOnloadHook( CustomizeModificationsOfSidebar );// customize only for bureaucrats// didn't work in testing/*if ( isArray( wgUserGroups ) ) { if ( wgUserGroups.Contains( 'bureaucrat' ) ) { addOnloadHook( CustomizeModificationsOfSidebar ); }}*/