No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
console.log("%cload%c :: loaded using global.js", "color: red;", "color: #999;"); |
console.log("%cload%c :: loaded using global.js", "color: red;", "color: #999;"); |
||
+ | importArticles({ |
||
− | // from w:c:dev:RemoveTracking |
||
+ | type: 'script', |
||
+ | articles: [ |
||
+ | 'u:dev:MediaWiki:RemoveTracking.js', |
||
⚫ | |||
+ | }); |
||
+ | console.log("@@ potato @@") |
||
− | ;(function (window, $, mw) { |
||
− | |||
− | if (!window.hasOwnProperty('dev')) { |
||
− | window.dev = {}; |
||
− | } |
||
− | if(!window.dev.hasOwnProperty('forceRemoveTracking')) { |
||
− | window.dev.forceRemoveTracking = true; |
||
− | } |
||
⚫ | |||
− | if ($.cookie('tracking-opt-in-status') || window.dev.forceRemoveTracking) { |
||
− | $('[data-tracking-label], [data-tracking]').removeAttr('data-tracking-label data-tracking'); |
||
− | } |
||
− | }(this, jQuery, mediaWiki)); |