🏠 Home 

显示滚动条-Always Show Scrollbars

解决Edge无法显示显示滚动条


Installer dette script?
  1. // ==UserScript==
  2. // @name 显示滚动条-Always Show Scrollbars
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 解决Edge无法显示显示滚动条
  6. // @author You
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. const styleContent = `
  13. * {
  14. scrollbar-width: auto !important;
  15. }
  16. ::-webkit-scrollbar {
  17. width: 12px;
  18. height: 12px;
  19. }
  20. ::-webkit-scrollbar-thumb {
  21. background: #888;
  22. border-radius: 6px;
  23. }
  24. ::-webkit-scrollbar-thumb:hover {
  25. background: #555;
  26. }
  27. `;
  28. const styleElement = document.createElement('style');
  29. styleElement.type = 'text/css';
  30. styleElement.appendChild(document.createTextNode(styleContent));
  31. document.head.appendChild(styleElement);
  32. })();