<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Firefox on miti99</title><link>https://miti99.com/en/tags/firefox/</link><description>Recent content in Firefox on miti99</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 16 Nov 2026 17:39:19 +0700</lastBuildDate><atom:link href="https://miti99.com/en/tags/firefox/index.xml" rel="self" type="application/rss+xml"/><item><title>Small Tweaks for Firefox</title><link>https://miti99.com/en/post/2020/04/18/</link><pubDate>Sat, 18 Apr 2020 00:00:00 +0700</pubDate><guid>https://miti99.com/en/post/2020/04/18/</guid><description>&lt;h2 id="cache-on-ram"&gt;Cache on RAM&lt;/h2&gt;&lt;p&gt;By default, Firefox stores its cache on both RAM and disk. Moving the cache entirely to RAM speeds up cache access and reduces disk writes (which is especially great for SSDs). Here&amp;rsquo;s how to do it:
Type &lt;code&gt;about:config&lt;/code&gt; into Firefox&amp;rsquo;s address bar&lt;br&gt;
Set &lt;code&gt;browser.cache.disk.enable&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;&lt;br&gt;
Make sure &lt;code&gt;browser.cache.memory.enable&lt;/code&gt; is set to &lt;code&gt;true&lt;/code&gt;&lt;br&gt;
You can also adjust how much RAM Firefox uses for caching via &lt;code&gt;browser.cache.memory.capacity&lt;/code&gt;—leaving it at the default &lt;code&gt;-1&lt;/code&gt; lets Firefox automatically pick the capacity based on your total RAM.&lt;/p&gt;
&lt;h2 id="disabling-pocket"&gt;Disabling Pocket&lt;/h2&gt;&lt;p&gt;Pocket comes bundled with Firefox by default, but I barely ever use it, so I just disable it :D. In &lt;code&gt;about:config&lt;/code&gt; as above, search for &lt;code&gt;extensions.pocket.enabled&lt;/code&gt; and set it to &lt;code&gt;false&lt;/code&gt;! 😀&lt;/p&gt;
&lt;h2 id="caching-the-entire-profile-in-ram-via-tmpfs"&gt;Caching the Entire Profile in RAM via tmpfs&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;Make sure you have enough free RAM to mount your profile, or you&amp;rsquo;ll run into out-of-memory errors!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Since &lt;code&gt;tmpfs&lt;/code&gt; (via the &lt;code&gt;tmp.mount&lt;/code&gt; service) is already enabled by default on Arch, we can take further advantage of having &lt;code&gt;/tmp&lt;/code&gt; mounted in RAM by caching the entire Firefox profile in RAM via &lt;code&gt;tmpfs&lt;/code&gt;. First, install &lt;code&gt;profile-sync-daemon&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;yay -S profile-sync-daemon
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Then edit &lt;code&gt;~/.config/psd/psd.conf&lt;/code&gt; and add &lt;code&gt;firefox&lt;/code&gt; to the &lt;code&gt;BROWSERS&lt;/code&gt; list, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BROWSERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;”firefox”
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;&lt;code&gt;profile-sync-daemon&lt;/code&gt; also supports &lt;code&gt;google-chrome&lt;/code&gt; and several other browsers (you can see the full list right inside that config file), so feel free to add whichever browsers you use to the list.
Enable &lt;code&gt;profile-sync-daemon&lt;/code&gt; to start automatically with your session:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;systemctl --user &lt;span class="nb"&gt;enable&lt;/span&gt; psd.service
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;And that&amp;rsquo;s it! You can check out plenty of other tweaks at: &lt;a href="https://wiki.archlinux.org/index.php/Firefox/Tweaks" rel="noopener noreferrer"&gt;https://wiki.archlinux.org/index.php/Firefox/Tweaks&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See you in future posts!&lt;/p&gt;</description></item></channel></rss>