“Firefox”的版本间的差异

来自wrc's Wiki
跳到导航 跳到搜索
 
第1行: 第1行:
== 笔记 ==
+
[[Category:GUI 程序]]
 
+
== userChrome.css ==
=== userChrome.css ===
 
 
 
<code>userChrome.css</code> 位于 <code>$profile_dir/chrome/userChrome.css</code>,用于定制界面。另外需要在 <code>about:config</code> 中打开 <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> 选项。<ref>[https://www.userchrome.org/how-create-userchrome-css.html How to Create a userChrome.css File]</ref>
 
  
== 设置 ==
+
<code>userChrome.css</code> 的位置为 <code>~/.mozilla/firefox/PROFILE_NAME/chrome/userChrome.css</code>。另外需要在 <code>about:config</code> 中打开 <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> 选项。<ref>[https://www.userchrome.org/how-create-userchrome-css.html How to Create a userChrome.css File]</ref>
  
=== userChrome.css ===
+
=== Firefox 89 UI 更改 ===
 
 
<code>userChrome.css</code> 的位置为 <code>~/.mozilla/firefox/PROFILE_NAME/chrome/userChrome.css</code>
 
 
 
==== Firefox 89 UI 更改 ====
 
  
 
将 Multi-Account Container 的彩色条置于下方 <ref>https://gist.github.com/intrnl/ef2066b9b97b2b6026dab05a6011f8c0</ref>
 
将 Multi-Account Container 的彩色条置于下方 <ref>https://gist.github.com/intrnl/ef2066b9b97b2b6026dab05a6011f8c0</ref>
第25行: 第18行:
 
其它设置见 GitHub 仓库 [https://github.com/black7375/firefox-ui-fix black7375/firefox-ui-fix]。
 
其它设置见 GitHub 仓库 [https://github.com/black7375/firefox-ui-fix black7375/firefox-ui-fix]。
  
==== Tab 上的右键菜单更改 ====
+
=== Tab 上的右键菜单更改 ===
  
去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后突然加上的一个选项)
+
去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后加上的一个菜单选项)
 
<syntaxhighlight lang=css>
 
<syntaxhighlight lang=css>
 
#tabContextMenu #context_openANewTab,
 
#tabContextMenu #context_openANewTab,
第41行: 第34行:
  
 
<references />
 
<references />
 
[[Category:GUI 程序]]
 

2021年8月19日 (四) 09:13的最新版本

userChrome.css

userChrome.css 的位置为 ~/.mozilla/firefox/PROFILE_NAME/chrome/userChrome.css。另外需要在 about:config 中打开 toolkit.legacyUserProfileCustomizations.stylesheets 选项。[1]

Firefox 89 UI 更改

将 Multi-Account Container 的彩色条置于下方 [2]

.tab-context-line {
    background-color: transparent !important;
    background-image: linear-gradient(to right, transparent 10%, var(--identity-tab-color) 10%, var(--identity-tab-color) 90%, transparent 90%);
    margin: -2px !important;
    transform: translateY(32px);
}

其它设置见 GitHub 仓库 black7375/firefox-ui-fix

Tab 上的右键菜单更改

去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后加上的一个菜单选项)

#tabContextMenu #context_openANewTab,
#tabContextMenu #context_openANewTab + menuseparator {
    display: none !important;
}

参考资料