devtoolsDetector remover

annoying when on hianime.to for example

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

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

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ć!)

// ==UserScript==
// @name         devtoolsDetector remover
// @namespace    http://tampermonkey.net/
// @version      1
// @description  annoying when on hianime.to for example
// @author       Big watermelon
// @license      MIT
// @match        *://*/*
// @icon         data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAW0lEQVQY052QSwqAMBBDX0sR739SwZ1onwtB+9OFgSwmE0JmABCykNVEAUHBaripQQ3CUeq98UrvNNRpsCi5P110fjVqpCm+DCqstFDjIC0xgrBVB3yh+t0f4wkql4NuwIC5igAAAABJRU5ErkJggg==
// @grant        unsafeWindow
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    const FAKE = { launch: () => 0, addListener: () => 0 };
    Object.defineProperty(unsafeWindow, 'devtoolsDetector', {
        set: () => 0,
        get: () => FAKE
    });
})();