moodle-width

resizes moodle for smaller window widths.

  1. // ==UserScript==
  2. // @name moodle-width
  3. // @version 0.0
  4. // @description resizes moodle for smaller window widths.
  5. // @match https://moodle.helsinki.fi/*
  6. // @namespace https://greasyfork.org/users/217495-eric-toombs
  7. // @run-at document-idle
  8. // ==/UserScript==
  9.  
  10.  
  11. style_tag = document.createElement('style');
  12. style_tag.innerHTML = `
  13. div#topofscroll {
  14. max-width: 100vw !important;
  15. }
  16. `;
  17. document.getElementsByTagName('head')[0].append(style_tag);