(Translated by https://www.hiragana.jp/)
User:Hedonil/XTools - Meta Jump to content

User:Hedonil/XTools

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Hedonil (talk | contribs) at 09:36, 25 August 2014 (Undo revision 9633879 by Inukaband (talk)Vandalism). It may differ significantly from the current version.

Enable XTools gadget Now with cross-wiki notifications

This is the gadget of XTools.
It will add a line to the current page as shown in this example: (in fact, it's not yellow )

XTools gadget: Global notifications from 800+ wiki's
Show result summary of checks in tooltip


The color of See full page statistics-text changes, if the on-the-fly check (~ 1 sec) detects some issues. Currently the following checks are performed:

You can quickly access the results via tooltip or see the full description in section #bugs
The gadget text ist localized to the wiki's language, if it has been translated in translatewiki.net.


XTools cross-wiki notifications

If you are logged in with Wikimedia OAuth, you can get cross-wiki notifications from over 800 wiki's!

  • You can configure the XAgent here: XAgent config
  • How it works:
    1. XAgent queries your most edited + your recent edited wiki's (as listed in X! Edit Counter) + the wiki's you specified in XAgent's config every 60 seconds for new notifications.
    2. If you delete the session cookie or if the session ended, you'll have to login again.
    3. If you see this icon: , you are not logged in, otherwise a badge with the number of new (or zero) notifications is shown. Refresh your browser with F5
  • Enhancements of this feature are work in progress (as you might see on the config page)
  • ENJOY the new feature!


1. Normal method: common.js

The most common way to activate this gadget is to insert the following line into your common.js.

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript');

Copy the line above and paste it into your common.js (create new one, if it doesn't exist)

This works for the wiki where you modified the common.js and if you are logged in.
If you are using a script blocker like NoScript, wmflabs.org must be allowed.

2. Alternative method: user script

// ==UserScript==
// @name        Wikipedia XTools gadget
// @namespace   http://tools.wmflabs.org/xtools
// @description Provides instant meta information for all Wikimedia wikis.
// @match	*://*.wikipedia.org/*
// @match	*://*.wikimedia.org/*
// @match	*://*.mediawiki.org/*
// @match	*://*.wikidata.org/*
// @match	*://*.wiktionary.org/*
// @match	*://*.wikisource.org/*
// @match	*://*.wikibooks.org/*
// @match	*://*.wikinews.org/*
// @match	*://*.wikiquote.org/*
// @match	*://*.wikiversity.org/*
// @match	*://*.wikivoyage.org/*
// @run-at 	document-end
// @version     1.0
// @grant       none
// ==/UserScript==
var src = '//meta.wikimedia.org/w/index.php?title=User:Hedonil/XTools/XTools.js&action=raw&ctype=text/javascript';
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = src;
(document.head||document.documentElement).appendChild(script);
script.parentNode.removeChild(script);
  • Save this snippet to file XAgent.user.js (.user.js is important) – or download here with right mouse click -> Save Link As...
  • Chrome/Chromium: -> Tools -> Extensions. Just drag & drop the file.
  • Mozilla: (Greasemonkey required). Open blank page in browser -> drag & drop the file
  • If you are using a script blocker like NoScript, wmflabs.org must be allowed.
  • Advantages:
  1. all wikis/projects included out of the box
  2. quickly toggle the things on/off without editing your common.js
  3. works even if logged out


Feedback appreciated! If you want to comment the feature or if you have further suggestions (position of text, shown data, etc.), please leave a note on:


The JavaScript-code can be inspected here:

More information