Guest User

uBlock Origin Script

a guest
Jan 18th, 2018
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     var noopfn = function() {;
  3.     };
  4.     //
  5.     var Gaq = function() {;
  6.     };
  7.     Gaq.prototype.Na = noopfn;
  8.     Gaq.prototype.O = noopfn;
  9.     Gaq.prototype.Sa = noopfn;
  10.     Gaq.prototype.Ta = noopfn;
  11.     Gaq.prototype.Va = noopfn;
  12.     Gaq.prototype._createAsyncTracker = noopfn;
  13.     Gaq.prototype._getAsyncTracker = noopfn;
  14.     Gaq.prototype._getPlugin = noopfn;
  15.     Gaq.prototype.push = function(a) {
  16.         if (typeof a === 'function') {
  17.             a();
  18.             return;
  19.         }
  20.         if (Array.isArray(a) === false) {
  21.             return;
  22.         }
  23.         // https://twitter.com/catovitch/status/776442930345218048
  24.         // https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._link
  25.         if (a[0] === '_link' && typeof a[1] === 'string') {
  26.             window.location.assign(a[1]);
  27.         }
  28.         // https://github.com/gorhill/uBlock/issues/2162
  29.         if (a[0] === '_set' && a[1] === 'hitCallback' && typeof a[2] === 'function') {
  30.             a[2]();
  31.         }
  32.     };
  33.     //
  34.     var tracker = (function() {
  35.         var out = {};
  36.         var api = [
  37.             '_addIgnoredOrganic _addIgnoredRef _addItem _addOrganic',
  38.             '_addTrans _clearIgnoredOrganic _clearIgnoredRef _clearOrganic',
  39.             '_cookiePathCopy _deleteCustomVar _getName _setAccount',
  40.             '_getAccount _getClientInfo _getDetectFlash _getDetectTitle',
  41.             '_getLinkerUrl _getLocalGifPath _getServiceMode _getVersion',
  42.             '_getVisitorCustomVar _initData _link _linkByPost',
  43.             '_setAllowAnchor _setAllowHash _setAllowLinker _setCampContentKey',
  44.             '_setCampMediumKey _setCampNameKey _setCampNOKey _setCampSourceKey',
  45.             '_setCampTermKey _setCampaignCookieTimeout _setCampaignTrack _setClientInfo',
  46.             '_setCookiePath _setCookiePersistence _setCookieTimeout _setCustomVar',
  47.             '_setDetectFlash _setDetectTitle _setDomainName _setLocalGifPath',
  48.             '_setLocalRemoteServerMode _setLocalServerMode _setReferrerOverride _setRemoteServerMode',
  49.             '_setSampleRate _setSessionTimeout _setSiteSpeedSampleRate _setSessionCookieTimeout',
  50.             '_setVar _setVisitorCookieTimeout _trackEvent _trackPageLoadTime',
  51.             '_trackPageview _trackSocial _trackTiming _trackTrans',
  52.             '_visitCode'
  53.         ].join(' ').split(/\s+/);
  54.         var i = api.length;
  55.         while (i--) {
  56.             out[api[i]] = noopfn;
  57.         }
  58.         out._getLinkerUrl = function(a) {
  59.             return a;
  60.         };
  61.         return out;
  62.     })();
  63.     //
  64.     var Gat = function() {;
  65.     };
  66.     Gat.prototype._anonymizeIP = noopfn;
  67.     Gat.prototype._createTracker = noopfn;
  68.     Gat.prototype._forceSSL = noopfn;
  69.     Gat.prototype._getPlugin = noopfn;
  70.     Gat.prototype._getTracker = function() {
  71.         return tracker;
  72.     };
  73.     Gat.prototype._getTrackerByName = function() {
  74.         return tracker;
  75.     };
  76.     Gat.prototype._getTrackers = noopfn;
  77.     Gat.prototype.aa = noopfn;
  78.     Gat.prototype.ab = noopfn;
  79.     Gat.prototype.hb = noopfn;
  80.     Gat.prototype.la = noopfn;
  81.     Gat.prototype.oa = noopfn;
  82.     Gat.prototype.pa = noopfn;
  83.     Gat.prototype.u = noopfn;
  84.     var gat = new Gat();
  85.     window._gat = gat;
  86.     //
  87.     var gaq = new Gaq();
  88.     (function() {
  89.         var aa = window._gaq || [];
  90.         if (Array.isArray(aa)) {
  91.             while (aa[0]) {
  92.                 gaq.push(aa.shift());
  93.             }
  94.         }
  95.     })();
  96.     window._gaq = gaq.qf = gaq;
  97. })();
Advertisement
Add Comment
Please, Sign In to add comment