freecadForumNavBarWidthFix.user.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. // ==UserScript==
  2. // @name freecadweb.org navbar width
  3. // @namespace Violentmonkey Scripts
  4. // @match https://forum.freecadweb.org/*
  5. // @grant none
  6. // @run-at document-start
  7. // @version 1.0
  8. // @author github.com/ipatch
  9. // @description fix navbar overflow
  10. // @downloadURL https://raw.githubusercontent.com/ipatch/dotfiles/release/config/violentmonkey/freecadForumNavBarWidthFix.user.js
  11. // @supportURL https://github.com/ipatch/dotfiles/issues
  12. // @homepageURL https://github.com/ipatch/dotfiles
  13. // ==/UserScript==
  14. console.log('violentmoneky, navbar width');
  15. var styleSheet = "" +
  16. "@media (min-width: 768px) and (max-width: 991px) {" +
  17. ".container {" +
  18. // uncomment the below css property to visually see when script is used
  19. // "background-color: blue;" +
  20. "width: 100%;" +
  21. "}" +
  22. "}" +
  23. "";
  24. (function () {
  25. var s = document.createElement('style');
  26. s.type = "text/css";
  27. s.innerHTML = styleSheet;
  28. (document.head || document.documentElement).appendChild(s);
  29. })();