Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Where is the Android & iOS Firefox user.js stored?

653 views
Skip to first unread message

Chris Morris

unread,
Aug 7, 2016, 9:36:31 PM8/7/16
to mozilla-sup...@lists.mozilla.org
Where is the Android & iOS Firefox user.js stored?

In googling for how to edit the Android user.js file, I found this hardened
user.js file which I would like to use on both Android and iOS mobile
devices:
https://github.com/pyllyukko/user.js/blob/master/user.js

Reading for how to install, this section appears to explain how:
https://github.com/pyllyukko/user.js/#android

But, using ES File Explorer on an unrooted Android phone, I don't have
either of those two directories using Firefox 47.0 on Android.

Fennec =
/data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.your_profile_name

Alien Dalvik =
/opt/alien/data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.your_profile_name

Where is the Android & iOS Firefox 47.0 user.js stored?

Ed Mullen

unread,
Aug 8, 2016, 11:49:14 AM8/8/16
to mozilla-sup...@lists.mozilla.org
On 8/7/2016 at 9:33 PM, Chris Morris's prodigious digits fired off:
Use ES File Explorer to search for user.js.

--
Ed Mullen
http://edmullen.net/
A day without sunshine is like night.

Chris Morris

unread,
Aug 8, 2016, 2:58:18 PM8/8/16
to mozilla-sup...@lists.mozilla.org
On Mon, 8 Aug 2016 11:44:39 -0400, Ed Mullen wrote:

> Use ES File Explorer to search for user.js.

I pointed Firefox 48.0 to file:/// and then walked down the hierarchy.

There was no /opt, so I went to /data instead.

I got the error:
file:///data and file:///data/
Access to the file was denied.
The file at /data/ is not readable.

The same thing happened at file:///data/data/ & file:///data/data.
But things started working again at file:///data/data/org.mozilla.firefox/.

I saw "Index of file:///data/data/org.mozilla.firefox/"
In "files" there was both a mozilla and a .mozilla so I went to mozilla
where there was a XXXXXXXX.default directory which contained the prefs.js
file.

I copied that location to the clipboard
file:///data/data/org.mozilla.firefox/XXXXXXXX.default/prefs.js

And then I went to the user.js file on the Internet
https://github.com/pyllyukko/user.js

I pressed "Jump to file"
https://github.com/pyllyukko/user.js/find/master?q=

And then I tapped on the "user.js" link
https://github.com/pyllyukko/user.js/blob/master/user.js

This brought up the user.js file but didn't allow me to download it
so I long pressed instead on the "user.js" link which brought up a menu
which had an option for
a. Share Link
b. Open Link in New Tab
c. Open Link in Private Tab
d. Copy Link
e. Bookmark Link

I was hoping to find a "Save As" but there wasn't any option for that.
I was hoping to figure out how to set the firefox "Downloads Dir" but I
couldn't do that either from the Android firefox 48.0 settings.

I mailed the user.js file to myself, but what good will that do if I can't
save it into /data/data/org.mozilla.firefox/XXXXXXXX.default/user.js

Now that we know _where_ the user.js file is supposed to be stored, how do
we store that file where it belongs?

Chris Morris

unread,
Aug 8, 2016, 3:44:45 PM8/8/16
to mozilla-sup...@lists.mozilla.org
On Mon, 8 Aug 2016 11:44:39 -0400, Ed Mullen wrote:

> Use ES File Explorer to search for user.js.

Since I couldn't change the Firefox downloads directory,
I installed ES File Explorer as suggested.

I then long pressed on the web page at
https://github.com/pyllyukko/user.js/blob/master/user.js

A new "ES Save to..." option came up when I pressed the "Share" icon.

So I pressed "ES Save to..." which had me go through the motions to choose
a directory to save the file to, but "ES Save to..." wouldn't save the
user.js file anywhere (not even in the Firefox Downloads directory!).

I don't know what that "ES Save to..." button does but it didn't work.

Can anyone figure out how to save this user.js file into the Mozilla
profiles directory?

FILE: https://github.com/pyllyukko/user.js/blob/master/user.js
SAVE: /data/data/org.mozilla.firefox/XXXXXXXX.default/user.js

Chris Morris

unread,
Aug 12, 2016, 11:25:47 AM8/12/16
to mozilla-sup...@lists.mozilla.org
On Tue, 9 Aug 2016 02:41:57 +0700, Chris Morris wrote:

> Can anyone figure out how to save this user.js file into the Mozilla
> profiles directory?
>
> FILE: https://github.com/pyllyukko/user.js/blob/master/user.js
> SAVE: /data/data/org.mozilla.firefox/XXXXXXXX.default/user.js

After failing at everything, even a specific extension that purports to
load a user-defined js file, I have concluded that, for some strange
reason, Mozilla developers made it *impossible* to load a user.js on
Android devices.

So, I guess the question has morphed to "Why".

Why would Mozilla developers disallow the user.js file on Android?
0 new messages