MediaWiki:Common.js: Difference between revisions
Add wikEd |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. | /* Any JavaScript here will be loaded for all users on every page load.*/ | ||
/* Make the VisualEditor Sticky */ | |||
/* leverage jQuery for the selector and the sticky class from Chameleon? | |||
This doesn't actually work properly | |||
AND, the VE Toolbar is floating in Vector2022 skin | |||
So, it's a bug? in Chameleon | |||
$('.ve-ui-toolbar').addClass('sticky'); | |||
*/ | */ | ||
/** Matomo | |||
* disabled on 2025-09-26 because it is not documented nor working at this time | |||
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 | // install [[:Wikipedia:User:Cacycle/wikEd]] in-browser text editor | ||
(function () | (function () | ||
| Line 11: | Line 37: | ||
} | } | ||
) (); | ) (); | ||
*/ | |||
/*To add <script src="https://use.fontawesome.com/14c71d3de0.js"></script> | /*To add <script src="https://use.fontawesome.com/14c71d3de0.js"></script> | ||
| Line 94: | Line 121: | ||
} | } | ||
} | } | ||
/** | |||
jQuery( document ).ready( function( $ ) { | jQuery( document ).ready( function( $ ) { | ||
// adds [[Special:Html2Wiki]] to toolbox | // adds [[Special:Html2Wiki]] to toolbox | ||
ModifySidebar( 'add', 'toolbox', 'Import HTML', '/wiki/Special:Html2Wiki' ); | ModifySidebar( 'add', 'toolbox', 'Import HTML', '/wiki/Special:Html2Wiki' ); | ||
} ); | } ); | ||
*/ | |||