Rise Resolution streaming

Spoof Microsoft Edge on streaming services ( Disney, Netflix, HBO )

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Rise Resolution streaming
// @namespace    http://tampermonkey.net/
// @name:pt-BR   Aumentar resolucao em streamings
// @description  Spoof Microsoft Edge on streaming services ( Disney, Netflix, HBO )
// @description:pt-BR  Falsifica o Microsoft Edge em serviços de streaming (Disney, Netflix, HBO)
// @version      1.0
// @author       angru4
// @match        *://*.netflix.com/*
// @match        *://*.disneyplus.com/*
// @match        *://*.max.com/*
// @match        *://*.hbomax.com/*
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0";

    function override(obj, prop, value) {
        Object.defineProperty(obj, prop, {
            get: () => value,
            configurable: true
        });
    }

    override(navigator, "userAgent", ua);
    override(navigator, "appVersion", ua);

    override(navigator, "vendor", "Google Inc.");

    override(navigator, "platform", "Win32");

    override(navigator, "hardwareConcurrency", 8);
    override(navigator, "deviceMemory", 8);

    override(navigator, "userAgentData", {
        brands: [
            { brand: "Microsoft Edge", version: "122" },
            { brand: "Chromium", version: "122" },
            { brand: "Not=A?Brand", version: "24" }
        ],
        mobile: false,
        platform: "Windows"
    });

})();