Difference between revisions of "MediaWiki:Common.js"

From Rangjung Yeshe Wiki Texts
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-24060214-4...")
 
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
<script type="text/javascript">
 
  
  var _gaq = _gaq || [];
+
// [[Wikipedia:Tools/Navigation popups]]
  _gaq.push(['_setAccount', 'UA-24060214-4']);
+
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
  _gaq.push(['_trackPageview']);
 
  
  (function() {
 
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
  })();
 
  
</script>
+
 
 +
 
 +
var _gaq = _gaq || [];
 +
_gaq.push(['_setAccount', 'UA-24060214-4']);
 +
_gaq.push(['_trackPageview']);
 +
 
 +
(function() {
 +
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 +
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 +
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 +
})();

Latest revision as of 05:57, 15 June 2022

/* Any JavaScript here will be loaded for all users on every page load. */

// [[Wikipedia:Tools/Navigation popups]]
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');




var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24060214-4']);
_gaq.push(['_trackPageview']);

(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();