Enable Printing for Restricted Pages

Enable printing for web pages that prevent printing/Abilita la stampa di pagine web bloccate

  1. // ==UserScript==
  2. // @name Enable Printing for Restricted Pages
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Enable printing for web pages that prevent printing/Abilita la stampa di pagine web bloccate
  6. // @author Magneto1
  7. // @license MIT
  8. // @match *://*/*
  9. // @grant GM_addStyle
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Rimuovi le regole CSS che impediscono la stampa
  16. GM_addStyle(`
  17. @media print {
  18. * {
  19. display: block !important;
  20. visibility: visible !important;
  21. opacity: 1 !important;
  22. }
  23. body {
  24. display: block !important;
  25. }
  26. }
  27. `);
  28. })();