SpyShop Bypass Select,Copy & Paste

Bypass Copy and Paste for spyshop.pl

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        SpyShop Bypass Select,Copy & Paste
// @namespace   https://github.com/x3ric
// @match       https://www.spyshop.pl/blog/*
// @grant       none
// @version     1.1
// @author      x3ric
// @license     MIT
// @description Bypass Copy and Paste for spyshop.pl 
// ==/UserScript==

(function() {
    'use strict';
    // Overriding the specific script functionalities by resetting the event handlers
    document.onkeydown = null;
    document.onselectstart = null;
    document.onmousedown = null;
    document.onclick = null;
    // Reset CSS styles that prevent user interaction
    document.querySelectorAll('*').forEach(el => {
        el.style.userSelect = 'text';
        el.style.cursor = '';
    });
    // Remove event listeners that were added via the problematic script
    function removeAllEventListeners() {
        var newElement = document.createElement('div');
        newElement.innerHTML = document.body.innerHTML;
        document.body.innerHTML = newElement.innerHTML;
    }
    // Call this function to remove listeners on page load and navigation events
    window.onload = removeAllEventListeners;
    document.addEventListener('DOMContentLoaded', removeAllEventListeners);
    // Patch for the Safari touch call, if necessary
    document.addEventListener('touchstart', function(e) {
        e.stopPropagation();
    }, true);
    document.addEventListener('touchend', function(e) {
        e.stopPropagation();
    }, true);
})();