CSS: twitter.com

Corrections to UI of twitter.com

当前为 2022-10-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: twitter.com
  3. // @description Corrections to UI of twitter.com
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://greasyfork.org/en/users/309172-max44
  7. // @match *://*.twitter.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=twitter.com
  9. // @version 1.1
  10. // @license MIT
  11. // @run-at document-idle
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. //CSS for any mode
  16. var css = `
  17. /*No opacity for header*/
  18. .r-6026j {
  19. background-color: rgba(255, 255, 255, 1) !important;
  20. }
  21. .r-1e5uvyk {
  22. backdrop-filter: none !important;
  23. }
  24. /*Add bottom border to header*/
  25. div.css-1dbjc4n.r-aqfbo4.r-gtdqiz.r-1gn8etr.r-1g40b8q,
  26. div.css-1dbjc4n.r-1d2f490.r-1xcajam.r-zchlnj.r-1gn8etr {
  27. border-bottom-width: 1px !important;
  28. border-bottom-style: solid !important;
  29. border-bottom-color: rgb(239, 243, 244) !important;
  30. }
  31. `;
  32.  
  33. if (typeof GM_addStyle != 'undefined') {
  34. GM_addStyle(css);
  35. } else if (typeof PRO_addStyle != 'undefined') {
  36. PRO_addStyle(css);
  37. } else if (typeof addStyle != 'undefined') {
  38. addStyle(css);
  39. } else {
  40. var node = document.createElement('style');
  41. node.type = 'text/css';
  42. node.appendChild(document.createTextNode(css));
  43. document.documentElement.appendChild(node);
  44. }
  45. })();