feat: ✨ new mod zen-hide-sidebar
This commit is contained in:
parent
e852586757
commit
2cb4689c07
24
zen-hide-sidebar/README.md
Normal file
24
zen-hide-sidebar/README.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Hide Sidebar
|
||||
|
||||
> 隐藏侧边栏和Sidebery标题栏
|
||||
|
||||
1. 安装 `Sidebery` 插件
|
||||
2. 在侧边栏上右键选择 `Compact mode -> Hide sidebar -> Eanble compact mode`
|
||||
3. 开启 mode 配置
|
||||
|
||||
Tips:
|
||||
|
||||
1. 在 `Profiles` 目录中添加 `user.js`, 可以开启 `Browser Toolbox Mode`
|
||||
|
||||
```js
|
||||
// user.js
|
||||
|
||||
user_pref("devtools.chrome.enabled", true);
|
||||
user_pref("devtools.debugger.remote-enabled", true);
|
||||
|
||||
user_pref("xpinstall.signatures.required", false);
|
||||
user_pref("config.trim_on_minimize", true);
|
||||
```
|
||||
|
||||
2. `Browser Toolbox Mode` 位于 `Tools -> Browser Tools`
|
||||
3. 快速预览样式, 使用 `Style Editor`
|
15
zen-hide-sidebar/chrome.css
Normal file
15
zen-hide-sidebar/chrome.css
Normal file
@ -0,0 +1,15 @@
|
||||
/* 隐藏侧边栏模组 */
|
||||
|
||||
/* 隐藏侧边栏标题 */
|
||||
@media (-moz-bool-pref: "mod.hidesidebar.hide_sidebar_header") {
|
||||
#sidebar-header {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 隐藏导航工具栏 */
|
||||
@media (-moz-bool-pref: "mod.hidesidebar.hide_navigator_toolbox") {
|
||||
#navigator-toolbox {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
BIN
zen-hide-sidebar/image.png
Normal file
BIN
zen-hide-sidebar/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
14
zen-hide-sidebar/preferences.json
Normal file
14
zen-hide-sidebar/preferences.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"property": "mod.hidesidebar.hide_sidebar_header",
|
||||
"label": "隐藏Sidebery标题",
|
||||
"type": "checkbox",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"property": "mod.hidesidebar.hide_navigator_toolbox",
|
||||
"label": "隐藏侧边栏",
|
||||
"type": "checkbox",
|
||||
"defaultValue": true
|
||||
}
|
||||
]
|
17
zen-hide-sidebar/theme.json
Normal file
17
zen-hide-sidebar/theme.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "zen-hide-sidebar",
|
||||
"name": "Hide Sidebar",
|
||||
"description": "隐藏侧边栏和Sidebery标题栏",
|
||||
"homepage": "https://git.081024.xyz/hxx/zen-mods",
|
||||
"style": "https://git.081024.xyz/hxx/zen-mods/raw/branch/main/zen-hide-sidebar/chrome.css",
|
||||
"readme": "https://git.081024.xyz/hxx/zen-mods/raw/branch/main/zen-hide-sidebar/README.md",
|
||||
"image": "https://git.081024.xyz/hxx/zen-mods/raw/branch/main/zen-hide-sidebar/image.png",
|
||||
"author": "jqtmviyu",
|
||||
"version": "0.0.1",
|
||||
"preferences": "https://git.081024.xyz/hxx/zen-mods/raw/branch/main/zen-hide-sidebar/preferences.json",
|
||||
"tags": [
|
||||
"sidebar"
|
||||
],
|
||||
"createdAt": "2025-05-25",
|
||||
"updatedAt": "2025-05-25"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user