tor-browser

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

bug1898983-elibrary.ferc.gov-window-chrome-shim.js (590B)


      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 1898983 - UA spoof for elibrary.ferc.gov
      9 *
     10 * The site is checking for window.chrome, so let's spoof that.
     11 */
     12 
     13 /* globals exportFunction */
     14 
     15 console.info(
     16  "window.chrome has been shimmed for compatibility reasons. https://bugzilla.mozilla.org/show_bug.cgi?id=1898983 for details."
     17 );
     18 
     19 window.wrappedJSObject.chrome = new window.wrappedJSObject.Object();