暁美ほむら 发表于 2025-2-9 16:05

让firefox 自带的AI聊天添加deepseek

现在firefox 设置当中firefox 实验室当中启用AI聊天

然后地址栏输入about:config,进入后搜索browser.ml.chat.provider,然后改成https://chat.deepseek.com/


输入browser.ml.chat.shortcuts ,设置为false


打开侧边栏选择AI聊天机器人你就能使用了

你也可以用这种方法添加任何你想要的



暁美ほむら 发表于 2025-2-9 16:20

本帖最后由 暁美ほむら 于 2025-2-10 15:13 编辑

自动隐藏侧边栏css,一些参数根据自己需求修改

/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_sidebar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */

/* Show sidebar only when the cursor is over it*/
/* The border controlling sidebar width will be removed so you'll need to modify these values to change width */

#sidebar-box{
--uc-sidebar-width: 40px;    /* 边缘多少像素触发*/
--uc-sidebar-hover-width: 210px;   /* 显示界面宽度*/
--uc-autohide-sidebar-delay: 600ms; /* 延迟多少毫秒自动隐藏 */
--uc-autohide-transition-duration: 115ms;
--uc-autohide-transition-type: linear;
--browser-area-z-index-sidebar: 3;
position: relative;
min-width: var(--uc-sidebar-width) !important;
width: var(--uc-sidebar-width) !important;
max-width: var(--uc-sidebar-width) !important;
z-index: var(--browser-area-z-index-sidebar,3);
}
#sidebar-box{ direction: rtl }
#sidebar-box > *{ direction: ltr }

#sidebar-box:-moz-locale-dir(rtl){ direction: ltr }
#sidebar-box:-moz-locale-dir(rtl) > *{ direction: rtl }

#main-window #sidebar-box{ --uc-sidebar-width: 1px; }

#sidebar-splitter{ display: none }

#sidebar-header{
overflow: hidden;
color: var(--chrome-color, inherit) !important;
padding-inline: 0 !important;
}

#sidebar-header::before,
#sidebar-header::after{
content: "";
display: flex;
padding-left: 8px;
}

#sidebar-header,
#sidebar{
transition: min-width var(--uc-autohide-transition-duration) var(--uc-autohide-transition-type) var(--uc-autohide-sidebar-delay) !important;
min-width: var(--uc-sidebar-width) !important;
will-change: min-width;
}
#sidebar-box:hover > #sidebar-header,
#sidebar-box:hover > #sidebar{
min-width: var(--uc-sidebar-hover-width) !important;
transition-delay: 0ms !important;
}

.sidebar-panel{
background-color: transparent !important;
color: var(--newtab-text-primary-color) !important;
}

.sidebar-panel #search-box{
-moz-appearance: none !important;
background-color: rgba(249,249,250,0.1) !important;
color: inherit !important;
}

/* Add sidebar divider and give it background */

#sidebar,
#sidebar-header{
background-color: inherit !important;
border-inline: 1px solid rgb(80,80,80);
border-inline-width: 0px 1px;
}

#sidebar-box:not() > :-moz-locale-dir(rtl),
#sidebar-box > *{
border-inline-width: 1px 0px;
}

/* Move statuspanel to the other side when sidebar is hovered so it doesn't get covered by sidebar */

#sidebar-box:not():hover ~ #appcontent #statuspanel{
inset-inline: auto 0px !important;
}
#sidebar-box:not():hover ~ #appcontent #statuspanel-label{
margin-inline: 0px !important;
border-left-style: solid !important;
}



passgan 发表于 2025-2-9 17:17

这个跟直接在侧边栏显示网页有啥区别

[皆神孝介] 发表于 2025-2-9 17:24

这个会不会和树状标签页冲突?

暁美ほむら 发表于 2025-2-9 17:26

[皆神孝介] 发表于 2025-2-9 17:24
这个会不会和树状标签页冲突?

并不会......

暁美ほむら 发表于 2025-2-9 17:27

passgan 发表于 2025-2-9 17:17
这个跟直接在侧边栏显示网页有啥区别
区别是这个可以一直常驻,侧边栏要每次重新打开一遍才行

而且你可以两者一起使用

passgan 发表于 2025-2-9 17:28

暁美ほむら 发表于 2025-2-9 17:27
区别是这个可以一直常驻,侧边栏要每次重新打开一遍才行

而且你可以两者一起使用


floorp暂时好像还不支持,等更新看看()

蜇灵 发表于 2025-2-10 08:28

有没有类似于zen浏览器那样的垂直标签页自动隐藏脚本?

EP2 发表于 2025-2-10 09:47

呃,我咋没有AI聊天

faithlifer 发表于 2025-2-10 11:09

看错编辑

暁美ほむら 发表于 2025-2-10 15:02

EP2 发表于 2025-2-10 09:47
呃,我咋没有AI聊天

请更新版本,如果没有看下about:config是否有这个参数browser.ml.chat.enabled

设置为true就行

暁美ほむら 发表于 2025-2-10 15:06

本帖最后由 暁美ほむら 于 2025-2-10 15:10 编辑

蜇灵 发表于 2025-2-10 08:28
有没有类似于zen浏览器那样的垂直标签页自动隐藏脚本?
不就是自动隐藏侧边栏脚本,比如我上面发的就是。

如果不行那去这里面找

https://github.com/zen-browser/theme-store/tree/main/themes


或者这里找一个自己喜欢的

https://firefoxcss-store.github.io/


其它补充:

https://github.com/MrOtherGuy/firefox-csshacks

EP2 发表于 2025-2-10 15:32

暁美ほむら 发表于 2025-2-10 15:02
请更新版本,如果没有看下about:config是否有这个参数browser.ml.chat.enabled

设置为true就行 ...

搞定了,虽然并没有什么用处

herostratus 发表于 2025-2-10 16:49

browser.ml.chat.shortcuts这个是干啥的?

暁美ほむら 发表于 2025-2-10 17:14

herostratus 发表于 2025-2-10 16:49
browser.ml.chat.shortcuts这个是干啥的?

选中文本时显示快捷提示词按钮。Firefox 会向聊天机器人发送选中的文本、页面标题和提示词。

=========================

这个功能只能自带的那几个可以使用,自定义的这个无法使用

herostratus 发表于 2025-2-10 17:20

暁美ほむら 发表于 2025-2-10 17:14
选中文本时显示快捷提示词按钮。Firefox 会向聊天机器人发送选中的文本、页面标题和提示词。

======== ...

就是选中文字之后显示摘要总结 解释说明 出题检测的那个吗?

蜇灵 发表于 2025-2-16 11:10

本帖最后由 蜇灵 于 2025-2-16 12:05 编辑

暁美ほむら 发表于 2025-2-10 15:06
不就是自动隐藏侧边栏脚本,比如我上面发的就是。

如果不行那去这里面找

你这个隐藏的不是垂直标签页那一栏,隐藏的是工具栏
在你给的最后一个网址里找到了,要用autohide_tabstoolbar_v2.css才行

masakaha 发表于 2025-2-16 11:21

chrome有好用的deepseek插件吗
页: [1]
查看完整版本: 让firefox 自带的AI聊天添加deepseek