搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Adding page title to the URL bar via userChrome.js

  • 1 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 cor-el

more options

Hi,

Back in the old days of classic extensions, they had access to FF's GUI elements, provided such privileges were asked in a manifest file.

For example, there were extensions that added tab's title to the URL bar. And I want to do exactly that nowadays, too.

WebExtensions can not do that but this should work with userChrome.js, right?

If so, maybe someone has already done it and I simply could not find it. Does anybody know?

If not, then how do I access the URL bar object to add text (e.g. page's title) to it or something else?

Thanks in advance.

Hi, Back in the old days of classic extensions, they had access to FF's GUI elements, provided such privileges were asked in a manifest file. For example, there were extensions that added tab's title to the URL bar. And I want to do exactly that nowadays, too. WebExtensions can not do that but this should work with userChrome.js, right? If so, maybe someone has already done it and I simply could not find it. Does anybody know? If not, then how do I access the URL bar object to add text (e.g. page's title) to it or something else? Thanks in advance.

所有回覆 (1)

more options

Maybe try to ask this at the mozillaZine forum or at Firefox subreddit forum to see if they have suggestions as I don't think there are a lot of users that make use of userChrome.js to modify the user interface or otherwise inject JavaScript.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題