F1 TV for Brave

Enables viewing Formula 1 TV streams using Brave browser by identifying as a regular Chrome browser.

// ==UserScript==
// @name        F1 TV for Brave
// @description Enables viewing Formula 1 TV streams using Brave browser by identifying as a regular Chrome browser.
// @author      bassz
// @namespace   bassz
// @version     1.0
// @license     GNU GPLv3
// @match       https://f1tv.formula1.com/*
// @grant       none
// @run-at      document-start
// ==/UserScript==

(function() {
  'use strict';

  const nav = window.navigator;
  if (nav.brave) {
    if (nav.brave.constructor && nav.brave.constructor.prototype && nav.brave.constructor.prototype.isBrave) {
      nav.brave.constructor.prototype.isBrave = undefined;
    }
    if (typeof nav.brave.isBrave === 'function') {
      nav.brave.isBrave = undefined;
    }
    if (nav.constructor && nav.constructor.prototype && 'brave' in nav.constructor.prototype) {
      delete nav.constructor.prototype['brave'];
    }
  }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址