Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Is there ANY WAY to run a javascript on parent process like how we run CSS on userChrome.css?

more options

Hello,

I created a loading progress bar for Firefox which uses JavaScript to show how much of the current page is loaded at the bottom of the address bar.

Is there any way I can automate running JavaScript at the opening of a window? Like how we can change the appearance in userChrome.css?

Currently I'm copy pasting the script to console at the start of every window.

Hello, I created a loading progress bar for Firefox which uses JavaScript to show how much of the current page is loaded at the bottom of the address bar. Is there any way I can automate running JavaScript at the opening of a window? Like how we can change the appearance in userChrome.css? Currently I'm copy pasting the script to console at the start of every window.

Всички отговори (1)

more options

Yes, it is possible to inject privileged script code into Firefox at startup, but I really have no idea how you would run that particular code.

As a starting point, check out my article: https://www.userchrome.org/what-is-userchrome-js.html