Usuário:לערי ריינהארט/common.js

Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer / Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
// [[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");
 
$(function() { mw.util.addPortletLink('p-cactions', mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&action=purge', 'purge', 'ca-purge', 'Purge the internal cache for this page'); });

/* BiDi support • function bidiSwitchSetup() */

mw.loader.load('//de.wikipedia.org/w/index.php?title=user:GFHund/monobook.js&action=raw&ctype=text/javascript');

/* Example for [[Bugzilla:023427#c23]] */
 
if (mw.config.get('wgArticleId'))
  {
    var my_short_url = mw.config.get('wgScript') + "?curid=" + mw.config.get('wgArticleId') + "&redirect=no&action=purge#normdaten";
    var my_short_name = "ArticleId:" + mw.config.get('wgArticleId');
    mw.util.addPortletLink('p-cactions',my_short_url,my_short_name);
  }