Advertisement
Guest User

Firefox V133.0 Tabs Below Booksmarks Toolbar and lots of adjustments/fixes V2

a guest
Dec 4th, 2024
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | Software | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. /*** Change right-click tab -> reload tab to be first context menu entry (for both single tab and multiple tab selections) ***/
  8. #tabContextMenu #context_reloadTab, #tabContextMenu #context_reloadSelectedTabs {
  9. order: -1 !important;
  10. }
  11.  
  12.  
  13.  
  14. /*** Remove specific right-click context menu items
  15. ***/
  16. #tabContextMenu .share-tab-url-item, /* - "Share" (when right-clicking on a tab) */
  17. #context_reopenInContainer, /* - Open in new container tab (when right-clicking on a tab) */
  18. #context-inspect-a11y, /* - Inspect user accessibility */
  19. #context-sendimage, /* - Email image */
  20. #context-openlinkinusercontext-menu, /* - Open link in new container tab */
  21. #context-pocket, /* - Save page to pocket */
  22. #context-savelinktopocket, /* - Save link to pocket */
  23. #context-print-selection /* - Print selection */ /* Note: no comma after final entry */
  24. { display:none!important;}
  25.  
  26.  
  27.  
  28. /*** Tighten up vertical drop-down(bookmark)/context/popup menu spacing ***/
  29. menupopup > menuitem, menupopup > menu {
  30. padding-block: 1px !important;
  31. }
  32. :root {
  33. --arrowpanel-menuitem-padding: 1px 2px !important;
  34. }
  35.  
  36. /*** Added to remove extra bookmark spacing after sept 2021 update: https://www.reddit.com/r/FirefoxCSS/comments/pmrp83/latest_update_has_messed_up_bookmark_spacing/ ***/
  37. #PlacesToolbar menuitem {
  38. min-height: 0px !important;
  39. }
  40.  
  41.  
  42.  
  43. /*
  44. FF96 UPDATE
  45. references: https://gist.github.com/tung/439935f55cc83af20defd7867ec89c82; , https://www.reddit.com/r/FirefoxCSS/comments/s1jdr5/firefox_tabbar_completely_messed_up_after_v96/
  46. */
  47. /* remove radius from buttons and tabs */
  48. *|*:root {
  49. --toolbarbutton-border-radius: 0 !important;
  50. --tab-border-radius: 0px !important;
  51. --toolbarbutton-outer-padding: 0 !important;
  52. --toolbarbutton-inner-padding: 8px !important;
  53. --toolbar-start-end-padding: 0 !important;
  54. }
  55.  
  56. /* remove margin from tabs */
  57. .tab-background {
  58. margin-block: 0 !important;
  59. }
  60.  
  61. /* remove padding between tabs */
  62. .tabbrowser-tab {
  63. padding-inline: 0 !important;
  64. }
  65.  
  66. /* add vertical line between tabs */
  67. .tabbrowser-tab:not([selected=true]):not([multiselected=true]):not([beforeselected-visible="true"]) .tab-background {
  68. border-right: 1px solid var(--lwt-background-tab-separator-color, rgba(0, 0, 0, 0.2)) !important;
  69. }
  70.  
  71. /* fix for when titlebar gets taller when there are many tabs */
  72. #tabbrowser-arrowscrollbox {
  73. height: var(--tab-min-height);
  74. }
  75.  
  76. /*
  77. END OF FF96 UPDATE
  78. */
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. /* Make speaker icon appear on tabs that are playing audio even when not mouse-hovered */
  88. /* Source: https://www.reddit.com/r/FirefoxCSS/comments/1h5797t/speaker_icon_permanently_visable_when_sound_is/ */
  89.  
  90. .tab-icon-stack:is([muted],[soundplaying],[activemedia-blocked]){
  91. grid-template-areas: "a s";
  92. }
  93.  
  94. .tab-icon-overlay:is([muted],[soundplaying],[activemedia-blocked]) {
  95. grid-area: s;
  96. }
  97.  
  98. #TabsToolbar #tabbrowser-tabs .tabbrowser-tab:not([pinned]) .tab-icon-overlay:not([pinned]) {
  99. margin-inline-start: -2px !important;
  100. margin-inline-end: 2px !important;
  101. }
  102.  
  103. .tab-icon-overlay {
  104. padding: 0 !important;
  105. border: 0 !important;
  106. background-position: center !important;
  107. fill: currentColor !important;
  108. background-color: color-mix(in srgb, var(--lwt-accent-color) 60%, transparent) !important;
  109. }
  110.  
  111. .tab-icon-overlay:hover {
  112. filter: brightness(1.10)!important;
  113. opacity: 0.8 !important;
  114. background-color: color-mix(in srgb, var(--lwt-accent-color) 60%, ghostwhite) !important;
  115. }
  116.  
  117. .tab-icon-stack:is([soundplaying], [muted], [activemedia-blocked]) > * {
  118. opacity: 1 !important;
  119. }
  120.  
  121. /* end of section - speaker icon fix */
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. /* ------------------------------------------------ */
  130. /* The following code moves the tabs below the bookmark toolbar. Some of the code might not be doing anything, or might be redundant with some of the above code.
  131. Delete everything below this comment if you want the tabs to stay above the address bar. */
  132.  
  133. /* reference for FF133.0 fixes: https://www.reddit.com/r/FirefoxCSS/comments/1h409wf/firefox_version_1330_tabs_below_adressbar/ /*
  134.  
  135.  
  136.  
  137. /* Place tabs below the address bar */
  138. #navigator-toolbox {
  139. display: flex !important;
  140. flex-direction: column !important;
  141. }
  142.  
  143. #TabsToolbar {
  144. order: 2 !important;
  145. }
  146.  
  147. /* Hide the secondary text line in tabs */
  148. .tab-secondary-label {
  149. display: none !important;
  150. }
  151.  
  152. /* Adjust the height of the tab bar */
  153. :root {
  154. --tab-min-height: 30px !important;
  155. }
  156.  
  157. :root {
  158. --arrowpanel-menuitem-padding: 4px 8px !important;
  159. }
  160.  
  161. /* Adjustments for compatibility with title bar buttons */
  162. #toolbar-menubar[autohide="true"] > .titlebar-buttonbox-container,
  163. #TabsToolbar > .titlebar-buttonbox-container {
  164. position: fixed;
  165. display: block;
  166. top: 0px;
  167. right: 0;
  168. height: 40px;
  169. }
  170.  
  171. #tabbrowser-tabs, #tabbrowser-arrowscrollbox {
  172. min-height: 0 !important;
  173. }
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
Tags: firefox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement