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

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Gadget-BiDiEditing.js&action=raw&ctype=text/javascript');

// 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>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');

// [[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;
    mw.util.addPortletLink('p-cactions',my_shortest_url,my_shortest_name);
  };

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