Canvas print fix

try to take over the world!

  1. // ==UserScript==
  2. // @name Canvas print fix
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://*.instructure.com/moderation/*
  8. // @require http://code.jquery.com/jquery-latest.js
  9. // ==/UserScript==
  10.  
  11. var $ = window.jQuery;
  12.  
  13. var waitForEl = function(selector, callback) {
  14. if ($(selector).length) {
  15. callback();
  16. } else {
  17. setTimeout(function() {
  18. waitForEl(selector, callback);
  19. }, 100);
  20. }
  21. };
  22.  
  23. waitForEl(".eqaNh_ckTw", function() {
  24. $( "#root" ).css( "height", "auto" );
  25. });