MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 11: | Zeile 11: | ||
ga('send', 'pageview'); | ga('send', 'pageview'); | ||
var gaPropertyfm = 'UA-88971159-1'; | |||
var disableStrfm = 'ga-disable-' + gaPropertyfm; | |||
if (document.cookie.indexOf(disableStrfm + '=true') > -1) { | |||
window[disableStrfm] = true; | |||
} | |||
function gaOptoutfm () { | |||
document.cookie = disableStrfm + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/; domain=.ennstalwiki.at'; | |||
window[disableStrfm] = true; | |||
} | |||
/** | /** | ||
Version vom 16. April 2018, 07:35 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/**
* Google Analytics
*/
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-88971159-1', 'auto');
ga('send', 'pageview');
var gaPropertyfm = 'UA-88971159-1';
var disableStrfm = 'ga-disable-' + gaPropertyfm;
if (document.cookie.indexOf(disableStrfm + '=true') > -1) {
window[disableStrfm] = true;
}
function gaOptoutfm () {
document.cookie = disableStrfm + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/; domain=.ennstalwiki.at';
window[disableStrfm] = true;
}
/**
* load the Edittools on [[Special:Upload]] and prefill the summary textarea
* Load pages: [[MediaWiki:Gadget-uploadtools.js]], [[MediaWiki:Onlyifediting.js]]
*/
if (mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload') {
mw.loader.load('ext.gadget.uploadtools');
mw.loader.load('//de.wikipedia.org/w/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript');
}
/**
* load the Edittools ([[MediaWiki:Edittools]], the part under the edit form)
* Load page: [[MediaWiki:Onlyifediting.js]]
*/
if ( mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit' ) {
mw.loader.load('//de.wikipedia.org/w/index.php?title=MediaWiki:Onlyifediting.js&action=raw&ctype=text/javascript');
}