Open main menu

Changes

cleanup the Matomo code
/* Any JavaScript here will be loaded for all users on every page load. */
importScriptURI/** Matomo **/ var _paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//wiki.freephile.org/analytics/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(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>
we use load instead of the deprecated importScriptURI */
mw.loader.load('//use.fontawesome.com/14c71d3de0.js');
/**
* Cusomize the sidebar for the Html2Wiki extension
}
}
/** 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 ); }}*/