Open main menu

Changes

1,151 bytes added ,  12:41, 27 May 2020
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( import the SubPages 'removegadget', 'toolbox', 'Upload file', 'httpfor all users. non-optional/** See https://enwww.wikipediamediawiki.org/wiki/SpecialExtension:Upload' );}Gadgets/Scripts/SubPages.js **/ for anyoneaddOnloadHook$( function ( CustomizeModificationsOfSidebar ){ var NSWithoutSubpages = [ -1, 6, 8, 12, 13, 14, 15, 104, 105 ];// customize only for bureaucrats// didn't work in testing/* if ( isArrayNSWithoutSubpages.indexOf( mw.config.get( wgUserGroups 'wgNamespaceNumber' ) ) === -1 ) { if var subpagesLink = mw.util.getUrl( wgUserGroups'Special:PrefixIndex/' + mw.config.Containsget( 'bureaucratwgPageName' ) + '/' ) {; addOnloadHook mw.util.addPortletLink( CustomizeModificationsOfSidebar 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' ); }}*/);