Gebruiker:Bertux/Verwante wijzigingen.js

Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.

  • Firefox / Safari: houd Shift ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
  • Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
  • Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
  • Opera: druk op Ctrl-F5.
/* Adds a "RecentChanges" link to the left toolbar, which finds changes to related articles. Works at all Wikimedia projects.
Script will not remember filter settings, but you can save those and then apply them in two clicks.
To use the script, add the following line to m:Special:MyPage/global.js:
 
importScript('User:Bertux/Verwante_wijzigingen.js'); // Linkback: [[User:Bertux/Verwante wijzigingen.js]]

Adapted from: importScript('User:Bertux/Backlinks.js'); // Linkback: [[User:Bertux/Backlinks.js]]
*/

mw.loader.using("mediawiki.util", function() {
    mw.util.addPortletLink(
        "p-tb",
        "/w/index.php?title=Special:RecentChangesLinked/"+encodeURIComponent(mw.config.get("wgPageName")),
        "* Related changes",
        "t-wdlh-check",
        "Find recent changes related to this article"
    );
});