Hot answers tagged

42

From http://kb.mozillazine.org/Profile_in_use - Check for: 1) A file called .parentlock -AND- 2) A symlink called lock ...in ~/.mozilla/firefox/random string of alphanumeric characters.default/ The former is present while Firefox is running to prevent more than one different instance from trying to simultaneously write to the same set of profile files, and ...


41

You can use data URIs, like this: echo '<h1>hello, world</h1>' |firefox "data:text/html;base64,$(base64 -w 0 <&0)" &0 is the file descriptor for stdin, so it encodes stdin to base64, then interpolates that into the data URI. The same trick works for other browsers, too: echo '<h1>hello, world</h1>' |chromium "data:...


40

Here is a community version of the answer by Yokai that incorporates examples offered by Rudolf Olah. You can use the tool called xdotool to control window size and location. Not only that, any script you write in bash, using xdotool, can be setup to work with a fully maximized window and it can be scripted to set the window size and x:y coordinates by ...


38

One of the biggest issues when launching some X-client remotely is the X-protocol, not so much the ssh overhead! The X-protocol requires a lot of ping-pong'ing between the client and the server which absolutely kills performance in the case of remote applications. Try something like "x2go" (which also goes over ssh with default setups) in you will notice ...


37

I've had this issue for ages, maybe it's time to do something about it! It comes done to ClearType, Microsoft and patents from what I read. Most *nix distro's disable any patent protected font rendering by default. Read about Debian and fonts here, you want Subpixel-hinting and Font-smoothing section. There's a config file on that page but I will add here ...


27

I ran into this too, and found the answer in mozilla's bugzilla. In short, it happened because the plugin was updated while Firefox was running, and the pluginreg.dat got corrupted. So: exit firefox rm ~/.mozilla/firefox/*/pluginreg.dat start firefox again and you'll be all set. (The file will be regenerated.) Of course, you'll need to make sure that the ....


26

The default ssh settings make for a pretty slow connection. Try the following instead: ssh -YC4c arcfour,blowfish-cbc user@hostname firefox -no-remote The options used are: -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls. -C Requests compression of all data (including ...


26

When debugging curl issues, the -v option is often helpful. In this particular instance, you’re running afoul of the If-None-Match header, which tells the server that you already have the file matching “6931c3b4d0e94743bb93a36ed8e8c3f5add12f9a” and that you’re not interested in retrieving it again if it hasn’t changed. -v shows you this by indicating that ...


24

When Firefox starts, it looks for a Firefox window running on the same display, and if it finds one, it focuses this window (and if you pass a URL on the command line, it opens a new tab to load the URL in the existing window). You must have run SSH with X11 display forwarding. Since X11 forwarding is active, all GUI programs that you start in the SSH ...


23

First find the process id of firefox using the following command in any directory: pidof firefox Kill firefox process using the following command in any directory: kill [firefox pid] Then start firefox again. Or you can do the same thing in just one command.As don_crissti said: kill $(pidof firefox)


23

this is a common problem causing nothing but the battery wasted energy decreasing unplugged operation time significantly. the cause of the problem appears to be very simple: you may have too many tabs opened each having bulky and useless endless loops running java-scripts. those java-scripts are usually not origin of the web site you are working with but ...


22

I was able to unpack the jsonlz4 by using lz4json: apt-get install liblz4-dev git clone https://github.com/andikleen/lz4json.git cd lz4json make ./lz4jsoncat ~/.mozilla/firefox/*/bookmarkbackups/*.jsonlz4


22

Save this script in a file, e.g., mozlz4: #!/usr/bin/env python from sys import stdin, stdout, argv, stderr import os try: import lz4.block as lz4 except ImportError: import lz4 stdin = os.fdopen(stdin.fileno(), 'rb') stdout = os.fdopen(stdout.fileno(), 'wb') if argv[1:] == ['-c']: stdout.write(b'mozLz40\0' + lz4.compress(stdin.read())) elif ...


20

I have much better experience in using an ssh tunnel to route traffic through another machine. It's very easy to set up since you have ssh access anyway. In a terminal on your computer, type ssh -vv -ND 8080 user@yourserver Keep this window open and watch it delivering some verbose messages about the data flowing through the tunnel. In firefox, go to ...


19

Firefox stores cookies in sqlite database ~/.mozilla/firefox/<profile path>/cookies.sqlite. You can have full access to it. For example, to watch all cookies from stackoverflow.com you can do: cd ~/.mozilla/firefox/<profile path>/ sqlite3 cookies.sqlite select * from moz_cookies where baseDomain glob '*stackoverflow*' (replace here <...


18

You have firefox-esr pinned to the currently-installed version with a very high priority: *** 52.9.0esr-1~deb9u1 30000 That prevents any other version with a lower pin priority from being installed, including the security update which only has priority 500: 60.2.0esr-1~deb9u2 500 The pin comes from apt-listbugs: it decided (or was told — I think it ...


16

It should be enough to install the great noto fonts bundles: sudo pacman -S noto-fonts-cjk noto-fonts-emoji noto-fonts The restart firefox and you should be abe to see them. Personally, I also installed the following from AUR: yaourt -S ttf-freefont ttf-ms-fonts ttf-linux-libertine ttf-dejavu ttf-inconsolata ttf-ubuntu-font-family I doubt those will help ...


15

How to Use Mozilla Firefox, Portable with flash plugin Make your firefox portable for Linux (all versions): Download the latest release of Firefox and unpack it on your usb device: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/ Go to unpack_directory/firefox/browser/plugins (firefox 22+). Add a short link to your installed flash-plugin binary (...


15

You want firefox --no-remote (or firefox --new-instance). Otherwise, it will "reuse" your existing firefox process.


14

A link to a “similar question” (xdg-open default applications behavior – not obviously related, but some experimentation showed that the behaviour is indeed equivalent to the one of xdg-open) led me deeper down the rabbit hole. While Firefox does not rely on, or inherit rules from, xdg-open, it uses the MIME specification files just as xdg-open does. On a ...


13

There's a possibility of forgeting enabling Liberator Statusline Toolbar. Right-click on places like Menu bar, Address bar, Toolbar, etc. A menu shows up in which you will find a line named "Liberator Statusline Toolbar". Click on it to enable. The Vimperator status bar magically appears again.


12

The terminal locks when you are running an application from it as long as the application is running. With the ampersand (&) you can start the application in the background and still use the terminal. Type: user@host:~# firefox & To start firefox in the background. Output of the application will still be in the terminal. Or, if firefox is already ...


11

There are two options I can recommend here: First, if you want to literally launch a full graphical browser and have it load a page with on a machine with no graphical capabilities, there is a tool called xvfb that will let you run a complete X server with no physical display associated with it. You then just need to run firefox with that X server set as ...


11

Apparently there is no option for firefox, but you can manipulate the ALSA output through environment variables. Try for example: ALSA_PCM_CARD=bluetooth firefox Alternatively, if this does not work, try scripting a little your .asoundrc pcm.!default { type plug slave.pcm { @func getenv vars [ ALSAPCM ] default "hw:hdmi" } } (...


11

Simply do: sudo apt-mark hold firefox This will add firefox package to the list of packages who should not recieve updates. To reverse it: sudo apt-mark unhold firefox You can list the packages on hold via: sudo apt-mark showhold For further information see man apt-mark.8


10

I know this is a rather old question, but I wanted to add a more recent answer as I got directed here by Google and had to search for a while to find the answer. As of Firefox 57, you can run in headless mode simply by installing Firefox and running: firefox -headless http://test.com/ See the Firefox dev docs here.


10

The binary would be inside the application bundle. For example, $ file /Applications/Firefox.app/Contents/MacOS/firefox-bin /Applications/Firefox.app/Contents/MacOS/firefox-bin: Mach-O universal binary with 2 architectures /Applications/Firefox.app/Contents/MacOS/firefox-bin (for architecture x86_64):Mach-O 64-bit executable x86_64 /Applications/Firefox....


10

Playing around with this I find that when you choose to open a document with an external program in Firefox, what happens is that Firefox downloads the program to /tmp and then runs the chosen program with the downloaded file as an argument (read 'opens the file with the chosen program'). If you then save the file (without choosing Save As or the equivalent) ...


10

I know this post is super old, but this has helped me overcome Firefox over SSH slowness by setting the following in about:config gfx.xrender.enabled = true Note: Starting in Firefox 47, the default became False.


10

this works for Firefox 57+. You'll need lz4 (via pip). The file header is gathered from the length of b'mozLz40\0'. Use an environment variable for the filepath if you want to use it in a oneliner, replace with \n and \t accordingly and merge lines. export opentabs=$(find ~/.mozilla/firefox*/*.default/sessionstore-backups/recovery.jsonlz4); python3 <<&...


Only top voted, non community-wiki answers of a minimum length are eligible