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

UserChrome script no longer working

  • 1 trả lời
  • 1 gặp vấn đề này
  • 7 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Have been using a script (.uc.js) in my profile/chrome folder to enable new-tab homepages via local files. After updating firefox ( 68.0b6, but I believe it appeared on b5) this functionality is gone. Instead it simply loads about:blank, seemingly showing that the script is not running at all.

Edit: upon further searching this seems to be to a change in Firefox 68 as a whole. Is there absolutely any way to regain this functionality?

Have been using a script (.uc.js) in my profile/chrome folder to enable new-tab homepages via local files. After updating firefox ( 68.0b6, but I believe it appeared on b5) this functionality is gone. Instead it simply loads about:blank, seemingly showing that the script is not running at all. Edit: upon further searching this seems to be to a change in Firefox 68 as a whole. Is there absolutely any way to regain this functionality?

Được chỉnh sửa bởi qik7 vào

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

more options

You can possibly set the new tab page via an autoconfig.cfg file.

This file is normally run in a sandbox that wouldn't allow this special code unless in ESR.

autoconfig.js in the "defaults\pref" folder.

//
pref("general.config.filename", "autoconfig.cfg");
pref("general.config.obscure_value", 0);
pref("general.config.sandbox_enabled", false);

autoconfig in the main Firefox program folder:

// first line is a comment
var {classes:Cc,interfaces:Ci,utils:Cu} = Components;

var newTabURL = "about:about"; // set new tab page
aboutNewTabService = Cc["@mozilla.org/browser/aboutnewtab-service;1"].getService(Ci.nsIAboutNewTabService);
aboutNewTabService.newTabURL = newTabURL;

Được chỉnh sửa bởi cor-el vào