IwanttoCopyAndPaste

用于解决简单的禁用右键菜单(或许还能解决复制粘贴?)

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

// ==UserScript==
// @name         IwanttoCopyAndPaste
// @namespace    hotaru.snowy.tmscript
// @version      0.0.2
// @description  用于解决简单的禁用右键菜单(或许还能解决复制粘贴?)
// @author       HotaruSnowy
// @match        *://*
// @include      *://*
// @license      MIT
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    document.ondragover = function (event) {return true;};
    document.ondragend = function (event) {return true;};
    document.onpaste = function (event) { return true;};
    document.onkeydown = function () {return true;};
    window.oncontextmenu = function () {return true};
    window.onkeydown = window.onkeyup = window.onkeypress = function (event) {return true;};
})();