Отображение вопросов с тегом: Показать все вопросы

JavaScript in firefox.cfg can't access `document`

As I understand, `autoconfig.js` (with `firefox.cfg`) can be used to have JavaScript run during startup to control Firefox's UI elements. I have set up `autoconfig.js` i… (читать ещё)

As I understand, `autoconfig.js` (with `firefox.cfg`) can be used to have JavaScript run during startup to control Firefox's UI elements.

I have set up `autoconfig.js` in my `/usr/lib/firefox-developer-edition/defaults/pref` folder (I'm on EndeavourOS Linux). As instructed here, I've already put the two required files, `autoconfig.js` and `firefox.cfg` in their correct folders (`/usr/lib/firefox-developer-edition/defaults/pref` and `/usr/lib/firefox-developer-edition` in my machine).

The file `firefox.cfg` contains the following code:

 //
 (() => {
   var tabbar = document.getElementById("TabsToolbar");
 })();


However, every time I run Firefox, this message will appear:

 "Failed to read the configuration file. Please contact your system administrator."


If I empty out the `firefox.cfg` file, Firefox will run normally without showing the error message. It will also run normally if I just have something like this in the file:

 //
 (() => {
   var testVar = "";
 })();


I don't understand why the JavaScript code can't access the Firefox UI elements through `document` or `window.document`. If `autoconfig.js` isn't build for that, what should I use to change my browser's UI elements through JavaScript?

Thank you.

Задан jazali 15 часов назад

Последний ответ от jazali 8 часов назад

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox, I want to get rid of it programmatically using java, which argument … (читать ещё)

There is this new pop up coming on latest firefox version 123 about opening favorite link on firefox, I want to get rid of it programmatically using java, which argument or preference should I use ?

Задан fuefirsttest 1 день назад

Последний ответ от fuefirsttest 1 день назад

Custom userChrome.css not working on firefox macOS

I'm trying to remove FireFox native horizontal tab following this link: https://superuser.com/questions/1424478/can-i-hide-native-tabs-at-the-top-of-firefox However, I c… (читать ещё)

I'm trying to remove FireFox native horizontal tab following this link: https://superuser.com/questions/1424478/can-i-hide-native-tabs-at-the-top-of-firefox

However, I couldn't get it to work even thought I use correct path, change config to true for using style sheet, and clear cache

context: path: /Users/PC/Library/Application Support/Firefox/Profiles/xxxxxxxx.default-release/chrome/userChrome.css FireFox version 123.0

Задан garnet.arm 2 дня назад

Последний ответ от garnet.arm 2 дня назад

Roboform not loading on 123.0 Firefox Release February 20, 2024 no toolbar or icon. Works on other browsers.

Roboform extension not working at all since the 123.0 Firefox Release February 20, 2024 update. It works fine on all of my other browsers. Please fix this. I have alre… (читать ещё)

Roboform extension not working at all since the 123.0 Firefox Release February 20, 2024 update. It works fine on all of my other browsers. Please fix this. I have already tried to reinstall it. It acts if it wants to work and then it disappears.

Задан dachkc19 3 дня назад

Последний ответ от dachkc19 2 дня назад

Firefox 'Top Sites' homepage.

Hello, so I have been putting my custom links onto the 'top sites' start page in Firefox, by editing the icons and putting the URL, etc. It is a great 'speed dial' type f… (читать ещё)

Hello, so I have been putting my custom links onto the 'top sites' start page in Firefox, by editing the icons and putting the URL, etc. It is a great 'speed dial' type feature I love. One thing has me tearing my hair out after trying all ways to try and fix this to appear to my liking, is the 'custom icon' from the website not showing in the sites I want to 'speed dial' Facebook and YT show up fine, but random sites I want on the page don't do this. I don't care why this is anymore, please don't give lengthily fixes. It's just silly you need a working URL with an icon at the end of it to display this properly. It did make me very mad, can you tell, even madder when I saw it done as it should be in OPERA browser, on their 'top sites', or 'speed dial' customizable home page they have the sensible option there to pick your own icon, you can put in a folder on your desktop if you like, no working URL needed! start a collection of what icons you want to see on your own start page. Can you please implement this 'common sense' modification as soon as possible, it will take only minutes of code writing i'm sure. I do not want to, but I will go to Opera as my main browser for this common sense functionality, good luck and thank you.

Задан home71 2 дня назад

Automatischer start exestiert nicht

Hallo ich möchte das Firefox sich beim starten des Pc alleine hochfährt. In den Einstellungen soll es dafür eine Option geben die bei mir aber nicht vorhanden ist. was ka… (читать ещё)

Hallo ich möchte das Firefox sich beim starten des Pc alleine hochfährt. In den Einstellungen soll es dafür eine Option geben die bei mir aber nicht vorhanden ist. was kann ich jetzt machen?

Задан silvercat5 4 дня назад

Последний ответ от silvercat5 2 дня назад

How to disable "Open my links with Firefox"?

I'm installing a Docker service set onto a new Ubuntu system, that has Firefox installed by default. One of the services is a GUI application. However, when opening Fire… (читать ещё)

I'm installing a Docker service set onto a new Ubuntu system, that has Firefox installed by default. One of the services is a GUI application.

However, when opening Firefox for the first time, a dialog shows up that I would like to disable (attached).

How can I disable this?

I'm running Firefox using: "/usr/bin/firefox --kiosk http://localhost"

I've already followed a lot of the suggestions in here: https://searchfox.org/mozilla-release/source/remote/shared/RecommendedPreferences.sys.mjs (and verified they are indeed set after installing my own "user.js" file), but I cannot find an about:config preference that disables what I'm still seeing.

Any help or ideas?

Задан Devin 4 дня назад

Best addon for downloading linked images on a website

I've tried a few addons that download website images but the website I go to has thumbnails that are linked to larger jpg's and addons I've used won't download the linked… (читать ещё)

I've tried a few addons that download website images but the website I go to has thumbnails that are linked to larger jpg's and addons I've used won't download the linked jpg's. I used "Download all images" addon which has a "Deep Search Option" and filters for downloading linked images but I can't get it to work. I couldn't figure out how to use the filters. I read about another addon called "download-links" that can search linked images and I might give it a try. Any suggestions? Has anyone tried "Download all images" addon?

Задан grov10 5 дней назад

Why is the "new" addon system so restrictive?

I've been hoping it would get better over the years but it's been a very long time and things never got better so I'm wondering why is the "new"(I think it's been close t… (читать ещё)

I've been hoping it would get better over the years but it's been a very long time and things never got better so I'm wondering why is the "new"(I think it's been close to 7 years now) addon is so restrictive?

I can't live without tab grouping and it's impossible to do the way I like with this new addon system and none of the many alternative are as good so it's been keeping me away from firefox since the change.

Is there a reason it's kept that way? I'd really like to come back to firefox because I'm sick of chrome and the smaller browsers have many compatibility issues because website ignore them but as long as the addon system remain as-is, I just can't.

Задан kookie_god 6 дней назад

Последний ответ от kookie_god 6 дней назад