MediaWiki:Gadget-luxo-edit-counter.js
Merk: Etter lagring vil det kanskje vera naudsynt at nettlesaren slettar mellomlageret sitt for at endringane skal tre i kraft.
- Firefox og Safari: Haldt nede Shift medan du klikkar på Oppdater, eller trykk anten Ctrl-F5 eller Ctrl-R (⌘-R på Mac)
- Google Chrome: Trykk Ctrl-Shift-R (⌘-Shift-R på Mac)
- Internet Explorer og Edge: Haldt nede Ctrl medan du klikkar Oppdater, eller trykk Ctrl-F5
- Opera: Tøm mellomlageret i Verktøy → Innstillingar
if (mw.config.get('wgNamespaceNumber') == 2) {
$( function (){
var user = mw.config.get('wgTitle');
user = user.replace(/\/.*$/,'');
/* Add a link to one of the portlet menus on the page */
mw.util.addPortletLink(
/* id of the target portlet ("p-cactions", "p-personal", "p-navigation" or "p-tb") */
"p-tb",
/* link URL */
"https://tools.wmflabs.org/guc/?user=" + encodeURI(user),
/* link text (will be automatically lowercased by CSS for p-cactions in Monobook) */
"Luxo sin teljar",
/* id of the new item, should be unique and preferably have the appropriate prefix ("ca-", "pt-", "n-" or "t-") */
"t-luxo-editcounter",
/* text to show when hovering over the link, without accesskey suffix */
"Luxo sin globale redigeringsteljar på toolserver",
/* accesskey to activate this link (one character, try to avoid conflicts) */
null,
/* the DOM node before which the new item should be added, should be another item in the same list */
null
);
});
}