Text Selection Medium.com: Re-enable

Selection & clipboard copying Stop Medium from preventing text

  1. // ==UserScript==
  2. // @name Text Selection Medium.com: Re-enable
  3. // @namespace https://github.com/aflowofcode
  4. // @version 1.0
  5. // @description Selection & clipboard copying Stop Medium from preventing text
  6. // @author A Flow of Code
  7. // @match *://*.medium.com/*
  8. // @match *://medium.com/*
  9. // @grant none
  10. // ==/UserScript==
  11. (function() {
  12. 'use strict';
  13. const sp = document.querySelectorAll('[data-selectable-paragraph]');
  14. sp.forEach(p => p.removeAttribute('data-selectable-paragraph'));
  15. console.log(`Don't try to control me, Medium - text selection re-enabled on ${sp.length} paragraphs`);
  16. })();