CSS: mobile.twitter.com

Corrections to UI of mobile.twitter.com

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

  1. // ==UserScript==
  2. // @name CSS: mobile.twitter.com
  3. // @description Corrections to UI of mobile.twitter.com
  4. // @author MK
  5. // @namespace max44
  6. // @homepage https://greasyfork.org/en/users/309172-max44
  7. // @match *://mobile.twitter.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=twitter.com
  9. // @version 1.0
  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. border-bottom-width: 1px !important;
  27. border-bottom-style: solid !important;
  28. border-bottom-color: rgb(239, 243, 244) !important;
  29. }
  30. `;
  31.  
  32. if (typeof GM_addStyle != 'undefined') {
  33. GM_addStyle(css);
  34. } else if (typeof PRO_addStyle != 'undefined') {
  35. PRO_addStyle(css);
  36. } else if (typeof addStyle != 'undefined') {
  37. addStyle(css);
  38. } else {
  39. var node = document.createElement('style');
  40. node.type = 'text/css';
  41. node.appendChild(document.createTextNode(css));
  42. document.documentElement.appendChild(node);
  43. }
  44. })();