Angel Learning Print/Copy Enabler

Disables the no-printing and no-copying restrictions on grade results pages on the GVTC Angel Learning website.

  1. // ==UserScript==
  2. // @name Angel Learning Print/Copy Enabler
  3. // @description:en Disables the no-printing and no-copying restrictions on grade results pages on the GVTC Angel Learning website.
  4. // @namespace mailto:reidrankin@gmail.com
  5. // @include http*://gvtc.angellearning.com/*/GradeDelivery.aspx*
  6. // @version 0.0.1.20160209220004
  7. // @description Disables the no-printing and no-copying restrictions on grade results pages on the GVTC Angel Learning website.
  8. // ==/UserScript==
  9.  
  10. function enableStuff() {
  11. // Disable all inline stylesheets. There's only one on these grade results pages, the one that disables printing.
  12. for (var i = 0; i < document.styleSheets.length; i++) {
  13. if (document.styleSheets[i].href == null) document.styleSheets[i].disabled = true;
  14. }
  15. // Basic, general right-click-disabler disabler
  16. var doc = document.wrappedJSObject || document, win = window.wrappedJSObject || window;
  17. doc.onmouseup = null;
  18. doc.onmousedown = null;
  19. doc.oncontextmenu = null;
  20. doc.onselectstart = null;
  21. }
  22.  
  23. window.addEventListener("load", enableStuff, false);