Firefox 心得

最後更新: 2018-06-06

目錄

 


Firefox 設定

 

在 address bar 鍵入

about:config

常用設定:

browser.tabs.closeWindowWithLastTab

browser.cache.disk.capacity (KB, default: 50000, 0 => Do not cache files on the hard drive.)

Keep all my tabs after close Firefox

General > Startup > Open previous windows and tabs

 


Memory

 

  • about:memory

 

  • about:cache?device=memory

 


Tuning

 

browser.sessionhistory.max_entries

# The maximum number of URLs you can traverse purely through the Back/Forward buttons.

browser.cache.memory.enable

browser.cache.disk.enable

# True

browser.cache.memory.max_entry_size

# set a number in KB

browser.cache.disk.capacity

#

browser.cache.compression_level

This setting determines whether Firefox compresses the data in the disk cache

browser.cache.check_doc_frequency

This setting determines how often Firefox checks the page you're viewing against the cached version it holds.

3: Firefox automatically checks and only reloads the page if it seems outdated
2: will never check and always load the cached version
1: will always check for a newer version of the page and reload

browser.cache.disk.parent_directory

D:\tmp\firefox\

 

# Disable Firefox Animations

about:config

search "animate"

# Enable Firefox Pipelining

search pipelining

# 查看 plugin memory usage

# 安裝 plugin: "addons-memory 2016"

about:addons-memory

# RAMBack

# 安裝 plugin: "RAMBack"

RAMBack will cause Firefox to issue an internal notification to free up memory that is otherwise held for performance purposes.

 


Firefox 瀏覽有點慢

 

在 Apache2 Web Server 上開啟了 cband 後,

總覺得 Firefox 反應有點遲緩.

之後用 IE 上再試, 一切正常 ....

之後在 Firefox 鍵入

about:config

一看, 原來 Firefox 是相當進取的 ...

network.http.max.connections-per-server            # default 15
network.http.max-persistent-connections-per-server # default 6
network.http.keep-alive.timeout                    # default 115

看來我 cband 的設定值太少了.(CBandRemoteSpeed 120kb/s 30 3)

之後改成 CBandRemoteSpeed 120kb/s 30 5, 一切回復正常 ~

 


解決firefox字體模糊

 

方法1:

Toos -> options -> advanced -> general/ browsing/use hardware acceleration when available

方法2:

Disable gfx.font_rendering.*

 


Start Firefox in Safe Mode

 

start Firefox with holding down the "shift" key
 

 


容許 firefox 不開任何 Tab

 

about:config

browser.tabs.closeWindowWithLastTab = false

 


Disable firefox pdf.js

 

about:config

pdfjs.disabled => true

 


TLS Verson(加密)

 

Msg:

Error code: SSL_ERROR_WEAK_SERVER_EPHEMERAL_DH_KEY

about:config > security.tls.version.min

1 => TLS 1.0, 2 => TLS 1.1, 3 => TLS 1.2

Other

search for security.ssl3.dhe_rsa_aes_128_sha and security.ssl3.dhe_rsa_aes_256_sha

Set them both to false.
 


Hotkey

 

Ctrl+U                      # View Source

Ctrl+Shift+M            # On debug window

 


Refresh Firefox (Reset)

 

# change all its settings to default and remove all the third-party data (like add-ons).

about:support

 


Firefox Proxy Setting

 

V. 57

Options -> Network Proxy Section -> Settings... Button
 

 


Check network

 

about:networking

 


ERR_UNSAFE_PORT

 

[Chrome]

shortcut: --explicitly-allowed-ports=87,6666,556,6667

[Firefox ]

about:config

找 "network.security.ports.banned.override" 加 "String" 1-65535

 


Restore the previous session

 

單一次

History > Restore Previous Session

每次 start Firefox 時

Settings > General panel > Under Startup > check "Open previous windows and tabs"

 


Session - sessionstore

 

1) 查看 Profile 的位置

 URL: about:support
 Find: Profile Folder

2) Backup Session
 Make a copy of the sessionstore-backups folder.

3) Restore Session
 Close Firefox
 Copy a file from the sessionstore-backups folder to the main profile and rename it
 i.e.
 sessionstore-backups\recovery.jsonlz4 -> sessionstore.jsonlz4

嘗試 restore 的次序

  1. recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  2. recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  3. previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  4. upgrade.jsonlz4-<build_id> (backup created during an upgrade of Firefox)

Notes

sessionstore.jsonlz4 <- 正常關 Firefox 時才會出現.

If Firefox doesn't use the sessionstore.jsonlz4 you copied then check

"History -> Restore Previous Session" and possibly "History -> Recently Closed Tabs/Windows"

 

Creative Commons license icon Creative Commons license icon