Skip to content

Firefox CheatSheet

Firefox 快捷键

说明 快捷键
全屏切换 F11
定位到地址栏切换 F6
移动 hjkl
标签页移动 H/L
页面跳转 f/F
关闭标签 C-w
新建标签 C-t
刷新标签 C-r

Python 读取 Firefox 历史记录

跳转

点击链接默认是新标签而不是新窗口

Settings→General→Tabs→Open...

整体大小(HIDPI)

about:config, layout.css.devPixelsPerPx

Tab 样式调整

1. 允许 userChrome.css (toolkit.legacyUserProfileCustomizations.stylesheets -> true)
2. 打开 Profile 目录 (about:support -> search profile -> open directory)
3. 新建 userChrome.css (new folder: chrome -> new file: userChrome.css)
4. 加入内容, 需要重启才生效。请参考一个非常好的网页: https://www.userchrome.org/firefox-89-styling-proton-ui.html

/* ---Tabs/Tab Bar height--- */
:root {
--tab-min-height: 50px !important;
}

清除 DNS 缓存

about:config,搜索 network.dnsCache,更改下述三个为 0:

  • network.dnsCacheEntries
  • network.dnsCacheExpiration
  • network.dnsCacheExpirationGracePeriod

删除最后一个标签页之后是否关闭窗口

about:config, browser.tabs.closeWindowWithLastTab

删除地址栏中百度 新浪等网址

这些东西叫做快捷方式, 取消方式: 设置->隐私与安全->地址栏->快捷方式

Firefox 打开 markdown 文件

参考:https://terminalroot.com/how-to-open-markdown-files-with-md-extension-in-firefox/

1. about:config -> helpers.private_mime_types_file -> 该属性对应一个文件, 默认为 .mime.types
2. vim .mime.types -> 插入: text/plain md txt -> 重启搞定

Comments