Jump to content

User:לערי ריינהארט/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.

// Gives some useful links on user, user talk and user contribution pages
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>

// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");
/* Example for [[Bugzilla:023427#c23]] */

if (wgArticleId)
    var my_shortest_url = wgServer + "?curid=" + wgArticleId + "#";
    var my_shortest_name = "ArticleId:" + wgArticleId;

if (wgArticleId)
    addOnloadHook(function() { mw.util.addPortletLink('p-cactions', wgServer + "?curid=" + wgArticleId + '&action=purge#', 'purge', 'ca-purge', 'Purge the internal cache for this page'); });