tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

adform.js (787B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 /**
      8 * Bug 1713695 - Shim Adform tracking
      9 *
     10 * Sites such as m.tim.it may gate content behind AdForm's trackpoint,
     11 * breaking download links and such if blocked. This shim stubs out the
     12 * script and its related tracking pixel, so the content still works.
     13 */
     14 
     15 if (!window.Adform) {
     16  window.Adform = {
     17    Opt: {
     18      disableRedirect() {},
     19      getStatus(clientID, callback) {
     20        callback({
     21          clientID,
     22          errorMessage: undefined,
     23          optIn() {},
     24          optOut() {},
     25          status: "nocookie",
     26        });
     27      },
     28    },
     29  };
     30 }