anti-anti-copy

some websites prevent you from copying text. this script bypass it.

  1. // ==UserScript==
  2. // @name anti-anti-copy
  3. // @description some websites prevent you from copying text. this script bypass it.
  4. // @namespace https://greasyfork.org
  5. // @include http://www.studytonight.com/*
  6. // @version 0.1
  7. // @grant none
  8. // @run-at document-end
  9. // ==/UserScript==
  10.  
  11. document.onselectstart = function(){return true;};
  12. if(window.sidebar)
  13. {
  14. document.onmousedown = document.onclick = function(){return true;};
  15. }
  16. window.onkeydown = function(){return true;};