Utilisateur:Hawk-Eye/vector.js
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;
Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.// mostEdited
$( document ).bind( 'mostedited-setmessages', function () {
mw.messages.set( {
// from core
'minutes': '{{PLURAL:$1|$1 minute|$1 minutes}}',
'hours': '{{PLURAL:$1|$1 hour|$1 hours}}',
'days': '{{PLURAL:$1|$1 day|$1 days}}',
'allpagessubmit': 'Go',
'namespace': 'Namespace:',
'invert': 'Invert selection',
'tooltip-invert': 'Check this box to hide changes within the selected namespace (and the associated namespace if checked)',
'namespace_association': 'Associated namespace',
'tooltip-namespace_association': 'Check this box to also include the talk or subject namespace associated with the selected namespace',
'blanknamespace': '(Main)',
'namespacesall': 'all',
'rc-change-size': '$1',
'pagetitle': '$1 - {{SITENAME}}',
// own messages
'mostedited-legend': 'Most edited pages options', // legend for options on BlankPage with action=mostedited
'mostedited': 'Most edited pages', // link in sidebar and title of the page
'tooltip-n-mostedited': 'Shows the most edited pages', // tooltip for link in sidebar
'mostedited-submit': 'Show most edited pages', // submit button in RecentChanges
'mostedited-time': 'Time:', // label for time selection
'mostedited-edits': '{{PLURAL:$1|$1 edit|$1 edits}} ($2 minor {{PLURAL:$2|edit|edits}})', // $1 - total number of edits to the page/section, $2 - number of minor edits
'mostedited-users': '{{PLURAL:$1|$1 user|$1 users}} ($2 anonymous {{PLURAL:$2|user|users}})', // $1 - total number of different editors, $2 - number of anonymous editors
'mostedited-size': 'Size change: $1', // $1 - formatted number
'mostedited-no-pages': 'There are no pages with $1 or more edits in the selected period.', // $1 - number of edits a page must have at least to get shown
'mostedited-increasing': 'The number of edits seems to be increasing.',
'mostedited-unchanging': 'The number of edits seems not to change.',
'mostedited-decreasing': 'The number of edits seems to be decreasing.',
'mostedited-changed-period': '(changed to: $1)',
'mostedited-changed-period-tooltip': 'The period had to be shortened because there are too many edits.'
} );
} );
mw.loader.load( '//www.mediawiki.org/w/index.php?title=User:Schnark/mostEdited.js&action=raw&ctype=text/javascript' );
// Haut
function nouveauLien()
{
var a = document.getElementById("p-personal");
if (a)
{
b = a.getElementsByTagName("ul");
if(b.length > 0)
{
b[0].innerHTML = b[0].innerHTML
+ '<li id="pt-perso">'
+ '<a href="https://fr.m.vvikipidea.org/wiki/Wikipédia:LiveRC">'
+ 'LiveRC</a></li>';
}
}
}
addOnloadHook(nouveauLien);
// Gauche
function nouvelleBoite() {
var l = document.getElementById('mw-panel');
if (!l) return;
l.innerHTML = l.innerHTML
+ '<div class="portal expanded" role="navigation" id="p-hawk-eye">'
+ ' <h3 tabindex="10">Perso Hawk-Eye</h3>'
+ ' <div class="body" style="display: block;">'
+ ' <ul>'
+ ' <li id="cj-feedback"><a href="http://fr.wikipedia.org/wiki/Spécial:ArticleFeedbackv5">Feedback</a></li>'
+ ' <li id="cj-bistro"><a href="http://fr.wikipedia.org/wiki/Wikipédia:Le_Bistro#footer">Le Bistro</a></li>'
+ ' <li id="cj-tennis"><a href="http://fr.wikipedia.org/wiki/Projet:Tennis">Projet Tennis</a></li>'
+ ' <li id="cj-mayenne"><a href="http://fr.wikipedia.org/wiki/Projet:Mayenne">Projet Mayenne</a></li>'
+ ' <li id="cj-adq"><a href="http://fr.wikipedia.org/wiki/Wikipédia:Contenus_de_qualité/Propositions#Propositions_au_label_article_de_qualit.C3.A9">AdQ</a></li>'
+ ' <li id="cj-ba"><a href="http://fr.wikipedia.org/wiki/Wikipédia:Bons_contenus/Propositions#Propositions_au_label_bon_article">BA</a></li>'
+ ' <li id="cj-pas"><a href="http://fr.wikipedia.org/wiki/Wikipédia:Pages à supprimer#Propositions">PàS</a></li>'
+ ' </ul>'
+ ' </div>'
+ '</div> ';
}
addOnloadHook(nouvelleBoite);