Note: After saving, you have to
bypass your browser's cache to see the changes.
Internet Explorer: press
Ctrl-F5 ,
Mozilla: hold down
Shift while clicking
Reload (or press
Ctrl-Shift-R ),
Opera/Konqueror: press
F5 ,
Safari: hold down
Shift + Alt while clicking
Reload ,
Chrome: hold down
Shift while clicking
Reload .
/*ajout onglet trafic */
function addArticleTrafficStatistics ()
{
var wgPageName = mw . config . get ( 'wgPageName' );
var histo = document . getElementById ( "ca-history" );
if ( histo )
{
var lien = document . createElement ( "a" );
var today = new Date ();
var annee = 2019 ;
var mois = new String ( today . getMonth () + 1 );
if ( mois . length < 2 )
{
mois = "0" + mois ;
}
lien . setAttribute ( "href" , "https://tools.wmflabs.org/pageviews/?project=commons.wikimedia.org&platform=all-access&agent=user&range=latest-30&pages=" + wgPageName );
lien . appendChild ( document . createTextNode ( "Trafic" ));
var stats = document . createElement ( "li" );
stats . setAttribute ( "id" , "ca-stats" );
stats . appendChild ( lien );
histo . parentNode . insertBefore ( stats , histo . nextSibling );
}
}
$ ( addArticleTrafficStatistics );
function OptimizedNavigAdmin ()
{
var a = document . getElementById ( "p-navigation" );
if ( a )
{
b = a . getElementsByTagName ( "ul" );
if ( b . length > 0 )
{
b [ 0 ]. innerHTML = b [ 0 ]. innerHTML
+ '<br />'
+ '<li><span id="Imports" title="Imports">'
+ '<a href="https://commons.wikimedia.org/w/index.php?title=Special%3AListFiles&limit=50&user=Floflo">Imports</a>' ;
}
}
}
addOnloadHook ( OptimizedNavigAdmin );