palemoon-branding.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #filter substitution
  2. #filter emptyLines
  3. #include ../../shared/pref/preferences.inc
  4. #include ../../shared/pref/uaoverrides.inc
  5. pref("startup.homepage_override_url","http://www.palemoon.org/unstable/releasenotes.shtml");
  6. pref("app.releaseNotesURL", "http://www.palemoon.org/unstable/releasenotes.shtml");
  7. // Enable Firefox compatmode by default.
  8. pref("general.useragent.compatMode", 2);
  9. pref("general.useragent.compatMode.gecko", true);
  10. pref("general.useragent.compatMode.firefox", true);
  11. // Enable dynamic UA updates
  12. pref("general.useragent.updates.enabled", true);
  13. pref("general.useragent.updates.interval", 86400); // Once per day
  14. pref("general.useragent.updates.retry", 7200); // Retry getting update every 2 hours if failed
  15. pref("general.useragent.updates.url", "https://dua.palemoon.org/?app=palemoon&version=%APP_VERSION%&channel=%CHANNEL%");
  16. // Geolocation
  17. pref("geo.wifi.uri", "https://pro.ip-api.com/json/?fields=lat,lon,status,message&key=K3TirHYiysBjnmD");
  18. // ========================= updates ========================
  19. #if defined(XP_WIN) || defined(XP_LINUX)
  20. // Enable auto-updates for this channel
  21. pref("app.update.auto", true);
  22. // Updates enabled
  23. pref("app.update.enabled", true);
  24. pref("app.update.cert.checkAttributes", true);
  25. pref("app.update.certs.1.issuerName", "CN=COMODO RSA Domain Validation Secure Server CA,O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB");
  26. pref("app.update.certs.1.commonName", "*.palemoon.org");
  27. pref("app.update.certs.2.issuerName", "CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB");
  28. pref("app.update.certs.2.commonName", "*.palemoon.org");
  29. // Interval: Time between checks for a new version (in seconds) -- 6 hours for unstable
  30. pref("app.update.interval", 21600);
  31. pref("app.update.promptWaitTime", 86400);
  32. // URL user can browse to manually if for some reason all update installation
  33. // attempts fail.
  34. #ifndef XP_LINUX
  35. pref("app.update.url.manual", "http://www.palemoon.org/unstable/");
  36. #else
  37. pref("app.update.url.manual", "http://linux.palemoon.org/download/unstable/");
  38. #endif
  39. // A default value for the "More information about this update" link
  40. // supplied in the "An update is available" page of the update wizard.
  41. #ifndef XP_LINUX
  42. pref("app.update.url.details", "http://www.palemoon.org/unstable/");
  43. #else
  44. pref("app.update.url.details", "http://linux.palemoon.org/download/unstable/");
  45. #endif
  46. #else
  47. // Updates disabled (Mac, etc.)
  48. pref("app.update.enabled", false);
  49. pref("app.update.url", "");
  50. #endif