OpenWRT Max Width

8/10/2022, 2:29:55 AM

  1. // ==UserScript==
  2. // @name OpenWRT Max Width
  3. // @namespace Violentmonkey Scripts
  4. // @match http://10.0.0.1/*
  5. // @match http://192.168.1.1/*
  6. // @match http://192.168.0.1/*
  7. // @match http://openwrt.lan/*
  8. // @match http://immortalwrt.lan/*
  9. // @match http://ohmywrt.lan/*
  10. // @grant none
  11. // @version 1.1
  12. // @author -
  13. // @description 8/10/2022, 2:29:55 AM
  14. // ==/UserScript==
  15.  
  16. var css = '.container { max-width: 1500px; }',
  17. head = document.head || document.getElementsByTagName('head')[0],
  18. style = document.createElement('style');
  19.  
  20. head.appendChild(style);
  21.  
  22. style.type = 'text/css';
  23. if (style.styleSheet){
  24. // This is required for IE8 and below.
  25. style.styleSheet.cssText = css;
  26. } else {
  27. style.appendChild(document.createTextNode(css));
  28. }