Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Adding page title to the URL bar via userChrome.js

  • 1 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi 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.

Tất cả các câu trả lời (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.