Jump to content

User:Gabriel dos Santos/common.js: Difference between revisions

From ICANNWiki
Created page with "window.hotcat_translations_from_commons = true; /* This imports the latest version of HotCat from Commons. HotCat is a gadget to make changes to categories much easier. Fu..."
 
No edit summary
 
Line 1: Line 1:
window.hotcat_translations_from_commons = true;
WebFontConfig = {
 
    google: { families: [ 'Cabin:400,500,400italic,500italic,600,600italic,700,700italic:latin' ] }
/*
  };
This imports the latest version of HotCat from Commons.
  (function() {
HotCat is a gadget to make changes to categories much easier.
    var wf = document.createElement('script');
Full documentation can be found at http://commons.wikimedia.org/wiki/Help:Gadget-HotCat
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
*/
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();

Latest revision as of 16:19, 1 April 2015

WebFontConfig = {
    google: { families: [ 'Cabin:400,500,400italic,500italic,600,600italic,700,700italic:latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();