7
9
2024
20

我正在使用的火狐扩展(2024年版)

本文来自依云's Blog,转载请注明。

距离上次分享好久了,于是又来啦~

桌面版

每一项第一行是扩展标题和链接,第二行是扩展自己的描述信息,第三行(如有)是我为写本文添加的介绍和评论。

篡改猴
使用用户脚本自由地改变网络
复制链接/标签名称和地址
将链接名称和地址复制到剪贴板
复制链接地址
使用快捷键 "a" 来复制链接地址
对着链接点右键,然后按 a 键就可以复制到链接啦。
书签搜索
使用已加为书签的搜索引擎搜索选定文本
我在访问哪个 Cloudflare® 数据中心?
显示正在访问的 Cloudflare® 名称信息
云盘万能钥匙
您的云盘智能助手
大概没什么用了吧……
About Sync
Show information about Firefox Sync.
同步出现问题时用过。它也可以直接发送请求、修改服务端的信息,比如删掉已卸载扩展的同步数据啥的。
Auto Tab Discard
如果您打开了很多标签页,这个扩展能提升浏览器速度并减少内存占用。
就是标签页休眠啦。
Behind The Overlay Revival
Click to close any overlay popup on any website.
一键关弹窗,不用找关闭按钮在哪里。
Bypass Paywalls
Bypass News Sites' Paywalls
cliget
Download login-protected files from the command line.
为下载的文件生成 wget / curl 的命令行。我现在很少用了,主要用途是在服务器上下载不能直接下载的文件。
Control Panel for YouTube
Gives you more control over YouTube by adding missing options and UI improvements
这个扩展功能不少,我主要用的地方有:隐藏短视频(浪费时间)、自动生成的音乐合集(我从来不听这个)、即将开播的视频(又不能看,显示着干嘛)、已观看完毕的视频。隐藏视频结尾总是挡到我看内容的卡片、结束时的推荐视频。将短视频播放器重定向到有进度条的正常播放器。
Cookie Quick Manager
An addon to manage (view, search, create, edit, delete, backup, restore) cookies.
Dark Reader
适用于所有网站的暗色主题。关爱眼睛,就使用 Dark Reader 进行日常浏览。
Decentraleyes
保护您免受集中式的内容交付网络(CDN)的跟踪。
Discard Tab
Adds Discard action to tab right-click
手动休眠标签页,避免浪费系统资源。
Flagfox
显示描述当前服务器位置的国旗。
Foxy Gestures
适用于 Firefox 的鼠标手势
FoxyImage
Collection of Image Related Actions
Google™ Translator
A handy multi-language translator built on top of Google translate.
Header Editor
管理浏览器请求,包括修改请求头和响应头、重定向请求、取消请求
用来做一些 hack 操作的,比如添加 referrer、跨域头;在新标签页中查看 imgur 的图片(不要给我网页);让 Grafana 不走代理、直连数据源以加快加载速度。这扩展在火狐上还能修改响应体。
I don't care about cookies
Get rid of cookie warnings from almost all websites!
Image Max URL
Finds larger or original versions of images
Link Status Redux
Shows an indicator on a popup panel along with the link address when the mouse cursor is over a link to a page you bookmarked or visited before.
显示链接的上次访问时间用的。
matrix.to opener
在你的 Matrix 客户端中直接打开 matrix.to 链接
MergEase • GitHub Code Review
Diff tool for GitHub pull requests
更准确地 diff GitHub 提交和 pull request,有点像 difft,是把 diff 发给服务端来生成的。
Mind the Time
Keep track of how much time you spend on the web, and where you spend it. A ticker shows the time spent at the current site or total time spent on the web today. A summary page shows data for today and recent history.
Octotree - GitHub code tree
GitHub on steroids
给 GitHub 的侧边栏文件树。
Popup window
將 Tab 彈出至獨立視窗,去除頁籤列、網址列和書籤列等介面
这扩展在 Wayfire 上不太好用,弹窗和原本窗口会跟在一起,而且关闭的时候容易关到弹窗后边的窗口。
Push to Kindle
Send web articles to your Kindle
哦,这个应该没用了……
Redirect Link
Redirect a link to somewhere else.
用于打开网页对应的互联网档案馆或者 archive.today 存档用的。
Redirector
Automatically redirect content based on user-defined rules.
和上边那个名字相似、但功能完全不同。自动重定向用的,比如看图要看原图、绕开 link.zhihu.com、统一中文维基百科中间的语种路径、把移动版 URL 重定向到桌面版、去掉 b23.tv 的小尾巴等等。
Reload PAC button
A button to reload the PAC definitions
Rotate and Zoom Image
Allows to rotate and zoom images directly on any website from context menu.
RSS Reader Extension (by Inoreader)
Build your own newsfeed
装了这个才能用快捷键让 InoReader 在后台打开文章。
RSSPreview
Preview RSS feeds in browser
ScrollAnywhere
使用鼠标中键在页面上的任何位置拖动滚动条。还支持“抓取和拖动”样式和动画。
横着滚、竖着滚、滚来滚去~
SingleFile
将一个完整的页面保存到单个 HTML 文件中
Snap Links
Select multiple links, checkboxes and other elements and act on them such as open them in new tabs or check/un-check them.
SponsorBlock for YouTube - 跳过赞助商广告
跳过 YouTube 视频中的赞助广告、订阅提醒等片段。标记视频中的赞助广告来节约大家的时间。
Stylus
Stylus 是一个调整网页外观的用户样式管理器。它可以让您轻松为许多热门网站安装主题和皮肤。
给网页加自定义 CSS 用的,我的用途有:叫网页不要使用奇奇怪怪的 Windows / MacOS 系字体;把暗色网页弄亮堂一点,避免在白天看不清;在各种文档网页里标记访问过的链接,免得老是点过去才发现内容已经读过了,或者不容易找到自己频繁访问的链接;去掉讨厌的圆角。
Textarea Cache
Allows to save automatically the content in a text input field.
不小心关掉了正在编写、尚未提交的内容,可以用它来恢复。
Tile Tabs WE
Take tabs from parent windows and arrange them in layouts of tiled sub-windows.
这扩展在 Wayland 上不能移动窗口,不过还是可以把窗口调整为合适平铺的大小,并可选加上滚动同步啥的。
Tree Style Tab - 树状标签页管理
以树状结构显示标签页。
uBlacklist
在谷歌的搜索结果中屏蔽特定的网站显示。
内容农场走开!
uBlock Origin
一款高效的网络请求过滤工具,占用极低的内存和 CPU。
Unpaywall
Legally get full text of scholarly articles as you browse.
User-Agent Switcher and Manager
Spoof websites trying to gather information about your web navigation to deliver distinct content you may not want
有时候还是不得不假装自己在用 Google Chrome 或者 Windows。
v2ex plus
优雅便捷的 V2EX 扩展
Vimium
The Hacker's Browser. Vimium provides keyboard shortcuts for navigation and control in the spirit of Vim.
wxIF
View the EXIF/IPTC/XMP data for images.
YouTube Anti Translate Updated
A small extension to disable YT video titles autotranslation.
机器翻译太难懂啦。Google 从来都意识不到人是可以会多种语言的。

移动版

由于获取方式的差异,这个列表没有扩展描述。不过大部分都和桌面版是重复的。

篡改猴
我在访问哪个 Cloudflare® 数据中心?
ClearURLs
Control Panel for YouTube
Cookie Quick Manager
Dark Reader
Decentraleyes
Google Search Fixer
Header Editor
Push to Kindle
Stylus
Text Reflow WE
uBlacklist
uBlock Origin
Unpaywall
Video Background Play Fix
在后台继续播放视频和音频,可以用于在后台播放 YouTube Music。
Web Archives
打开当前页面的存档页面。移动版没有右键菜单所以用不了 Redirect Link。

代码

桌面版的列表是在 about:addons 页面,打开 devtools 执行以下代码取得的:

const r = $$('addon-card').map(
  (el) => {
    return {
      title: el.querySelector('h3').textContent,
      desc: el.querySelector('.addon-description').textContent,
      id: el.getAttribute('addon-id'),
    }
  }
)

let parts = []
for(let ext of r) {
  parts.push(`<dt><a href="https://addons.mozilla.org/firefox/addon/${encodeURIComponent(ext.id)}/">${ext.title}</a></dt>\n<dd>${ext.desc}</dd>`)
}

console.log(parts.join('\n'))

而移动版是在 about:debugging 页面,连接上移动版火狐之后,执行以下代码获取的:

const r = $$('[data-qa-target-type="extension"]').map(
  (el) => {
    return {
      title: el.querySelector('[title]').title,
      id: el.querySelector('dd').textContent,
    }
  }
)

let parts = []
for(let ext of r) {
  parts.push(`<dt><a href="https://addons.mozilla.org/android/addon/${encodeURIComponent(ext.id)}/">${ext.title}</a></dt>`)
}

console.log(parts.join('\n'))
Category: 火狐 | Tags: web 火狐 WebExtensions | Read Count: 6248
游客 说:
Jul 09, 2024 06:31:45 PM

建议扩展全为英文名,方便搜索

游客 说:
Jul 09, 2024 06:34:39 PM

ClearURLs 和 uBlock Origin 重合

千玄子 说:
Jul 09, 2024 07:14:49 PM

Auto Tab Discard 和 Octotree 应该不再需要了吧?火狐自己有机制对长期不唤醒的标签休眠,然后 github 现在也有默认的文件树啦

千玄子 说:
Jul 09, 2024 07:16:03 PM

不过 github 的文件树需要具体点击某个文件夹才能展开,这一点没 Octotree 的好

Avatar_small
依云 说:
Jul 10, 2024 09:03:49 AM

哦 GitHub 自己也有文件树了啊。但是它会占用文件的显示空间,不像 Octotree 是叠层。

Avatar_small
依云 说:
Jul 10, 2024 09:04:45 AM

啊,uBO 有 ClearURLs 的规则么?

hamki 说:
Jul 10, 2024 10:49:25 AM

好多拓展啊...
我现在 firefox 只用了 Stylus, dark reader, ublock origin, redirector.

櫻川 浅羽 说:
Jul 10, 2024 02:22:29 PM

我有一個 profile 專門用來看 YouTube,相關的擴展還可以嘗試一下 Unhook 和 Enhancer for YouTube™,也是可以提供介面定製和一些增強功能的。

或許我也應該寫(水)一篇我在用的擴展……

wanwanyi 说:
Jul 10, 2024 07:02:20 PM

I don't care about cookies 这个插件已经被作者出售给了一家公司,并且已经好几个月没有更新了。

我推荐使用社区分支 I still don't care about cookies 或者 uBlock Origin 的 Cookie Notices 规则替换掉它。

benyip 说:
Jul 11, 2024 09:08:53 AM

Tampermonkey 是闭源的,2.9 之后不再提供源代码。推荐换成 Violentmonkey。我用的几十个脚本迁移过去都没问题,介面也更好看。
另外我觉得 Tridactyl 比 Vimium 好用很多

Avatar_small
依云 说:
Jul 11, 2024 09:16:28 AM

火狐量子化之前我用的扩展更多呢。

Avatar_small
依云 说:
Jul 11, 2024 09:28:52 AM

原来 uBO 也有 cookies 规则了呀,已换上~

Avatar_small
依云 说:
Jul 11, 2024 09:34:02 AM

我忘了我为什么没有用 Violentmonkey 和 Tridactyl 了……

Jaundice1108 说:
Jul 11, 2024 12:39:25 PM

stylus "把暗色网页弄亮堂一点" 这个样式可以分享一下吗?

Avatar_small
依云 说:
Jul 11, 2024 12:55:36 PM

就是对特定的域名反色而已,效果不是很好,但大多能看:

@media (prefers-color-scheme: light) {

html {
filter: invert(1) hue-rotate(180deg);
}

img, video, iframe {
filter: invert(1) hue-rotate(180deg);
}

}

hit9 说:
Jul 11, 2024 07:08:24 PM

+1 Tridactyl 是我离不开 ff 的最大原因了 哈哈哈

erhandsome 说:
Jul 11, 2024 11:48:25 PM

复制链接/标签名称和地址我用的Format Link,能配置不同的快捷键给各种标记语言的格式 https://addons.mozilla.org/ja/firefox/addon/format-link3/
RSS预览用的 https://addons.mozilla.org/en-US/firefox/addon/feed-preview/ 可以把正文默认折叠,只显示标题

Avatar_small
依云 说:
Jul 12, 2024 08:37:51 AM

Format Link 不错,要是支持标签页菜单就好了。现在我两个都装~

RSS 预览我用得并不多,还是用这个复古风味的吧,也算是对老火狐的纪念了。

Colin 说:
Jul 13, 2024 05:08:16 PM

想当年 Firefox 2/3 时有 2、3 十个扩展加上 n 多 userscripts,现在就只用 Firefox Multi-Account Containers, React Developer Tools, Stylus, Tampermonkey, uBlock Origin 了,还我自己写的都不用了


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Mastodon | Theme: Aeros 2.0 by TheBuckmaker.com