ChangeNavReadOnly

修改 navigator 等只读Object

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

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

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// eslint-disable-next-line
// ==UserScript==
// @name         ChangeNavReadOnly
// @namespace    https://dniness.github.io/
// @name:zh-CN   New Use Nav
// @version      0.01
// @description  修改 navigator 等只读Object
// @author       Dniness
// @match        *://*/*
// @icon         data:image/svg+xml,<svg width='64' height='64' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='32' cy='32' r='32' fill='MediumAquaMarine'/></svg>
// @grant        none
// @run-at       document-start
// @license      MPL2.0
// @noframes
// ==/UserScript==
// jshint esversion: 6

(function(UA_APP) {
    'use strict';
    const navTag=$=>{
        $=[$=Object.entries($),$=$.shift().pop()].shift()
            .forEach(([e,value])=>Object.defineProperty($,e,{value}));
    }
    navTag({navigator,
        userAgent:UA_APP,
        appName:UA_APP.split('/').slice(1).join('/'),
        platform:'Win32'
    });
    // Your code here...
})('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.114 Safari/537.36');