Greasy Fork is available in English.

No more “Read more...”

Prevent websites injecting a “Read more: www.site.com” into the copied content

  1. // ==UserScript==
  2. // @name No more “Read more...”
  3. // @description Prevent websites injecting a “Read more: www.site.com” into the copied content
  4. // @namespace http://superuser.com/a/708325
  5. // @author Robertof
  6. // @include *
  7. // @version 1
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. var disableSelections = function() {
  12. document.getSelection = window.getSelection = function() {
  13. return { isCollapsed: true };
  14. };
  15. };
  16. var script = document.createElement ("script");
  17. script.appendChild (document.createTextNode ("(" + disableSelections + ")();"));
  18. (document.body || document.head || document.documentElement).appendChild (script);
  19. })();