tor-browser

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

WorkerNavigator.js (1163B)


      1 (async () => {
      2  const obj = new Object();
      3  obj.appName    = navigator.appName;
      4  obj.appVersion = navigator.appVersion;
      5  obj.platform   = navigator.platform;
      6  obj.userAgent  = navigator.userAgent;
      7  obj.onLine     = navigator.onLine;
      8  if (navigator.userAgentData) {
      9    obj.brands = navigator.userAgentData.brands;
     10    obj.mobile = navigator.userAgentData.mobile;
     11    obj.platform = navigator.userAgentData.platform;
     12    const highEntropyValues = await navigator.userAgentData.getHighEntropyValues([
     13      "architecture", "bitness", "fullVersionList", "model",
     14      "platformVersion", "uaFullVersion", "wow64", "formFactors",
     15    ]);
     16    obj.architecture = highEntropyValues.architecture;
     17    obj.bitness = highEntropyValues.bitness;
     18    obj.fullVersionList = highEntropyValues.fullVersionList;
     19    obj.model = highEntropyValues.model;
     20    obj.platformVersion = highEntropyValues.platformVersion;
     21    obj.uaFullVersion = highEntropyValues.uaFullVersion;
     22    obj.wow64 = highEntropyValues.wow64;
     23    obj.formFactors = highEntropyValues.formFactors;
     24    obj.NavigatorUADataExposed = (typeof self.NavigatorUAData != "undefined");
     25  }
     26  postMessage(obj);
     27 })();