Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

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".

Tìm hiểu thêm

Modify "CustomizableWidgets.jsm"

  • 2 trả lời
  • 2 gặp vấn đề này
  • 28 lượt xem
  • Trả lời mới nhất được viết bởi Yaron

more options

I've added the following 2 lines to "const CustomizableWidgets" in "modules/CustomizableUI.jsm":

context: "", onClick: function(event) { if(event.button != 0) undoCloseTab(); }

This is the code after the change:

const CustomizableWidgets = [{ id: "history-panelmenu", type: "view", viewId: "PanelUI-history", shortcutId: "key_gotoHistory", tooltiptext: "history-panelmenu.tooltiptext2", defaultArea: CustomizableUI.AREA_PANEL, context: "", onClick: function(event) { if(event.button != 0) undoCloseTab(); } onViewShowing: function(aEvent) {

I re-zipped the files and replaced omni.ja, but it wouldn't work.

Should changes in JSM files apply without any further actions? Is the syntax correct?

Thank you.

I've added the following 2 lines to "const CustomizableWidgets" in "modules/CustomizableUI.jsm": context: "", onClick: function(event) { if(event.button != 0) undoCloseTab(); } This is the code after the change: const CustomizableWidgets = [{ id: "history-panelmenu", type: "view", viewId: "PanelUI-history", shortcutId: "key_gotoHistory", tooltiptext: "history-panelmenu.tooltiptext2", defaultArea: CustomizableUI.AREA_PANEL, context: "", onClick: function(event) { if(event.button != 0) undoCloseTab(); } onViewShowing: function(aEvent) { *** I re-zipped the files and replaced omni.ja, but it wouldn't work. Should changes in JSM files apply without any further actions? Is the syntax correct? Thank you.

Tất cả các câu trả lời (2)

more options

Yaron, This may be beyond the scope, but there are MDN resources that can help answer your questions below: For more information please see:

more options

Thank you guigs2. I appreciate your help.

I've found out that there's a pre-compiled CustomizableUI.jsm file in jsloaders.

That file has to be removed for changes in "modules/CustomizableUI.jsm" to take effect.