SpyShop Bypass Select,Copy & Paste

Bypass Copy and Paste for spyshop.pl

  1. // ==UserScript==
  2. // @name SpyShop Bypass Select,Copy & Paste
  3. // @namespace https://github.com/x3ric
  4. // @match https://www.spyshop.pl/blog/*
  5. // @grant none
  6. // @version 1.1
  7. // @author x3ric
  8. // @license MIT
  9. // @description Bypass Copy and Paste for spyshop.pl
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // Overriding the specific script functionalities by resetting the event handlers
  15. document.onkeydown = null;
  16. document.onselectstart = null;
  17. document.onmousedown = null;
  18. document.onclick = null;
  19. // Reset CSS styles that prevent user interaction
  20. document.querySelectorAll('*').forEach(el => {
  21. el.style.userSelect = 'text';
  22. el.style.cursor = '';
  23. });
  24. // Remove event listeners that were added via the problematic script
  25. function removeAllEventListeners() {
  26. var newElement = document.createElement('div');
  27. newElement.innerHTML = document.body.innerHTML;
  28. document.body.innerHTML = newElement.innerHTML;
  29. }
  30. // Call this function to remove listeners on page load and navigation events
  31. window.onload = removeAllEventListeners;
  32. document.addEventListener('DOMContentLoaded', removeAllEventListeners);
  33. // Patch for the Safari touch call, if necessary
  34. document.addEventListener('touchstart', function(e) {
  35. e.stopPropagation();
  36. }, true);
  37. document.addEventListener('touchend', function(e) {
  38. e.stopPropagation();
  39. }, true);
  40. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址