CSS: twitter.com

Corrections to UI of twitter.com

当前为 2023-01-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSS: twitter.com
  3. // @description Corrections to UI of twitter.com
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://gf.qytechs.cn/en/users/309172-max44
  7. // @match *://*.twitter.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=twitter.com
  9. // @version 1.1.2
  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 { /*white UI*/
  19. background-color: rgba(255, 255, 255, 1) !important;
  20. }
  21. .r-ii8lfi { /*dim UI*/
  22. background-color: rgba(21, 32, 43, 1) !important;
  23. }
  24. .r-5zmot { /*lights out UI*/
  25. background-color: rgba(0, 0, 0, 1) !important;
  26. }
  27. .r-1e5uvyk {
  28. backdrop-filter: none !important;
  29. }
  30. /*Add bottom border to header*/
  31. div.css-1dbjc4n.r-aqfbo4.r-gtdqiz.r-1gn8etr.r-1g40b8q,
  32. div.css-1dbjc4n.r-1d2f490.r-1xcajam.r-zchlnj.r-1gn8etr,
  33. div.css-1dbjc4n.r-1d2f490.r-1xcajam.r-ipm5af.r-13qz1uu {
  34. border-bottom-width: 1px !important;
  35. border-bottom-style: solid !important;
  36. border-bottom-color: rgb(239, 243, 244) !important;
  37. }
  38. `;
  39.  
  40. if (typeof GM_addStyle != 'undefined') {
  41. GM_addStyle(css);
  42. } else if (typeof PRO_addStyle != 'undefined') {
  43. PRO_addStyle(css);
  44. } else if (typeof addStyle != 'undefined') {
  45. addStyle(css);
  46. } else {
  47. var node = document.createElement('style');
  48. node.type = 'text/css';
  49. node.appendChild(document.createTextNode(css));
  50. document.documentElement.appendChild(node);
  51. }
  52. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址