MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(Do not track if user is accessing over Tor) |
No edit summary |
||
Line 811: | Line 811: | ||
$(selector3d.init); | $(selector3d.init); | ||
// Google Analytics | var flattrButton = { | ||
init: function() { | |||
$('#mw-panel').append($('<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://theportalwiki.com/wiki/Portal_Wiki:Donate"></a>'); | |||
$('head').append($('<script src="http://api.flattr.com/js/0.6/load.js?mode=auto" async="async"></script>')); | |||
} | |||
}; | |||
$(flattrButton.init); | |||
// Google Analytics; do not track if user is on Tor. | |||
if(location.host.indexOf('.onion') == -1) { | if(location.host.indexOf('.onion') == -1) { | ||
var _gaq = _gaq || []; | var _gaq = _gaq || []; |