更改

添加546字节 、 2021年8月19日 (四) 09:13
无编辑摘要
第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>
    
=== Firefox 89 UI 更改 ===
 
=== Firefox 89 UI 更改 ===
   −
将 Multi-Account Container 的彩色条置于下方,更改 userChrome.css:<ref>https://gist.github.com/intrnl/ef2066b9b97b2b6026dab05a6011f8c0</ref>
+
将 Multi-Account Container 的彩色条置于下方 <ref>https://gist.github.com/intrnl/ef2066b9b97b2b6026dab05a6011f8c0</ref>
 
<syntaxhighlight lang=css>
 
<syntaxhighlight lang=css>
 
.tab-context-line {
 
.tab-context-line {
第20行: 第17行:     
其它设置见 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 上的右键菜单更改 ===
 +
 +
去除菜单中的「新建标签页」和它下面的分隔线(是 Firefox 89 之后加上的一个菜单选项)
 +
<syntaxhighlight lang=css>
 +
#tabContextMenu #context_openANewTab,
 +
#tabContextMenu #context_openANewTab + menuseparator {
 +
    display: none !important;
 +
}
 +
</syntaxhighlight>
 +
 +
* 有关更改菜单选项见 [https://www.reddit.com/r/firefox/comments/7dvtw0/guide_how_to_edit_your_context_menu/ Guide How To Edit Your Context Menu]
 +
* 有关右键菜单的 [[CSS]] 选择器见 [https://github.com/stonecrusher/simpleMenuWizard simpleMenuWizard]。
    
== 参考资料 ==
 
== 参考资料 ==
    
<references />
 
<references />
  −
[[Category:GUI 程序]]