kiến thức Tổng hợp những addon chất cho Firefox / Chromium

cái này làm sao ạ

Mình mới bổ sung bên trên đó, là cái này: http://kb.mozillazine.org/Nglayout.initialpaint.delay

Để dễ hình dung mình ví dụ một trang web vẩu.vn với các thành phần:

vẩu.vn
  • File HTML chính
  • CSS để thay đổi màu sắc trang web, cách thức hiển thị text, bố cục
  • JS giúp hiện ra khung đăng nhập sau khi tải xong
  • CSS giúp các khung bài viết không bị tràn vượt qua chiều rộng màn hình

Thì khi tải trang web này:
  • Tải trang HTML
  • Hiển thị luôn file CSS đầù thay đổi màu sắc, bố cục trang web thì trình duyệt render một lần
  • Tải file JS tiếp rồi hiển thị khung đăng nhập là một lần render nữa
  • Tải tiếp file CSS thứ ba rồi khiến trang web không bị tràn là lần thứ 3

Cơ mà trên thực tế số lần render nhiều hơn ví dụ trên rất nhiều, thậm chí lên tới 20-30 lần.
 
Đã thử, nó nhảy ngay tức thì, nhưng mà đợi nó load nhìn khá là tức mắt ạ :)) e đang để 1 1

Mặc định là tức thì đó và giá trị tính là mili giây, 1 giây là 1000 mili giây.

Firefox hiện tại để giá trị này là 5ms, Chrome là 0ms, của mình 2000ms nghĩa là 2s render một lần, tuy nhiên nếu trang web tải xong trước 2s thì render luôn nên không ảnh hưởng đến tốc độ tải trang đâu, Firefox giờ nó khôn lắm không lãng phí thời gian render đâu.


Còn đây là cách Firefox mình render trang web (trang web luôn hiện ra ở trạng thái 100%): https://gfycat.com/AggressiveDimpledAntarcticgiantpetrel
 
Last edited:
Mặc định là tức thì đó và giá trị tính là mili giây, 1 giây là 1000 mili giây.

Firefox hiện tại để giá trị này là 5ms, Chrome là 0ms, của mình 2000ms nghĩa là 2s render một lần, tuy nhiên nếu trang web tải xong trước 2s thì render luôn nên không ảnh hưởng đến tốc độ tải trang đâu, Firefox giờ nó khôn lắm không lãng phí thời gian render đâu.


Còn đây là cách Firefox mình render trang web (trang web luôn hiện ra ở trạng thái 100%): https://gfycat.com/AggressiveDimpledAntarcticgiantpetrel

Cũng bài viết trên này và áp dụng với người dùng của Dark Reader (https://addons.mozilla.org/vi/firefox/addon/darkreader/):
Addon Dark Reader rất tiện, tuy nhiên addon này sử dụng rất nhiều CSS và JS để thay đổi màu sắc từng vùng trên trang web (thực sự là addon này phức tạp hơn rất nhiều người nghĩ là cứ cài vào nó biến trang web thành màu đen, nó còn phân tích màu sắc của font, các thẻ HTML lân cận để đưa ra quyết định có thay đổi màu sang đen hay không) khiến trang web phải render liên tục, tăng giá trị nglayout.initialpaint.delay sẽ giảm bớt số lần render của Firefox đi, khiến hạ bớt CPU đi khi tải trang. Tham khảo bài viết trên Reddit ở bên trên để rõ hơn:

I rather like the popular Dark Reader extension — an extension which forces "dark" versions of webpages via looking at the colors used. This is useful to reduce power usage on OLED displays and for more comfortable viewing in dark environments — but it causes significant rendering slowdown on my Android phone and causes the phone to heat up.

Instructing Firefox to delay incremental redraw appears to have done a great deal to resolve the pain of this for me.

Ordinarily, if Firefox has not downloaded a full webpage in 250 milliseconds, it tries to start rendering what it has pulled down anyway. This is a great idea if the page can be rendered quickly and not such a great idea if it's expensive to render, since it means that it has to render a webpage multiple times. Presently, it doesn't look like Firefox has any sort of automatic tuning of this value.

I increased the time to 2000 milliseconds.

For anyone else in the same boat:

Go to "about:config" in the URL bar.

Add an integer key "nglayout.initialpaint.delay". At least on my browser's installation, it did not exist and had to be added.

Insert the number of milliseconds that you're willing to wait until the browser tries to render the page if it still doesn't have a full copy downloaded. I used 2000.
 
Fen cứ lên bài đi. Mọi người ủng hộ mà.
  • uBlock Origin xài filter mặc định hay sao fen. Tui hay add thêm filter OISD. Trên NextDNS cũng có OISD. Như thế có nên hay không?
  • uBlock Origin có cái element picker khá hay. Tui toàn clean mấy cái linh tinh cho sạch. Cái này nhiều quá cũng ảnh hưởng hiệu suất của FF phải không fence?
View attachment 1625708


View attachment 1625710

Không ảnh hưởng đâu, cái Element Picker ấy, nó chỉ đơn giản là để lấy các tiền tố selector (id, class, attribute) rồi nhúng vào bộ lọc của uBlock thôi, không có gì là nặng và không ảnh hưởng đến hiện năng. Chưa kể một điều rằng uBlock được tối ưu bởi một ông lập trình viên lậm tối ưu, nên hiệu năng của uBlock là khó mà chê được.
 
Cũng bài viết trên này và áp dụng với người dùng của Dark Reader (https://addons.mozilla.org/vi/firefox/addon/darkreader/):
Addon Dark Reader rất tiện, tuy nhiên addon này sử dụng rất nhiều CSS và JS để thay đổi màu sắc từng vùng trên trang web (thực sự là addon này phức tạp hơn rất nhiều người nghĩ là cứ cài vào nó biến trang web thành màu đen, nó còn phân tích màu sắc của font, các thẻ HTML lân cận để đưa ra quyết định có thay đổi màu sang đen hay không) khiến trang web phải render liên tục, tăng giá trị nglayout.initialpaint.delay sẽ giảm bớt số lần render của Firefox đi, khiến hạ bớt CPU đi khi tải trang. Tham khảo bài viết trên Reddit ở bên trên để rõ hơn:
trên Edge thì sao thím?
Fkresec.png
 
trên Edge thì sao thím?
Fkresec.png

Edge Chrome không cho chỉnh thời gian render trang web, nhìn chung Chrome/Edge nó tù hơn Firefox nhiều, Firefox muốn tắt Telemetry thì vào about:config, Chrome/Edge chỉ có compile từ mã nguồn, đó là lý do tại sao Ungoogled Chromium tồn tại, xóa mã theo dõi trong tận mã nguồn... Nói gì tới thay đổi luôn thời gian Chrome render trang web.
 
bro chỉ rõ những thiếp lập cần tối ưu giúp nha

100% tắt hết telemetry, không bao giờ hỏng dù một tính năng của Firefox.

Code:
// Enable Multi-Account Container
user_pref("privacy.userContext.enabled", true); //enable Multi-Account Container
user_pref("privacy.userContext.ui.enabled", true); //enable Multi-Account Container

/*** [SECTION 0200]: GEOLOCATION / LANGUAGE / LOCALE ***/
user_pref("_user.js.parrot", "0200 syntax error: the parrot's definitely deceased!");
/* 0201: use Mozilla geolocation service instead of Google if permission is granted [FF74+]
 * Optionally enable logging to the console (defaults to false) ***/
user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
   // user_pref("geo.provider.network.logging.enabled", true); // [HIDDEN PREF]
/* 0202: disable using the OS's geolocation service ***/
user_pref("geo.provider.ms-windows-location", false); // [WINDOWS]
user_pref("geo.provider.use_corelocation", false); // [MAC]
user_pref("geo.provider.use_gpsd", false); // [LINUX]
user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX]

/*** [SECTION 0300]: QUIETER FOX ***/
user_pref("_user.js.parrot", "0300 syntax error: the parrot's not pinin' for the fjords!");
/** RECOMMENDATIONS ***/
/* 0320: disable recommendation pane in about:addons (uses Google Analytics) ***/
user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF]
/* 0321: disable recommendations in about:addons' Extensions and Themes panes [FF68+] ***/
user_pref("extensions.htmlaboutaddons.recommendations.enabled", false);
/* 0322: disable personalized Extension Recommendations in about:addons and AMO [FF65+]
 * [NOTE] This pref has no effect when Health Reports (0331) are disabled
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to make personalized extension recommendations
 * [1] https://support.mozilla.org/kb/personalized-extension-recommendations ***/
user_pref("browser.discovery.enabled", false);

/** TELEMETRY ***/
/* 0330: disable new data submission [FF41+]
 * If disabled, no policy is shown or upload takes place, ever
 * [1] https://bugzilla.mozilla.org/1195552 ***/
user_pref("datareporting.policy.dataSubmissionEnabled", false);
/* 0331: disable Health Reports
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send technical... data ***/
user_pref("datareporting.healthreport.uploadEnabled", false);
/* 0332: disable telemetry
 * The "unified" pref affects the behavior of the "enabled" pref
 * - If "unified" is false then "enabled" controls the telemetry module
 * - If "unified" is true then "enabled" only controls whether to record extended data
 * [NOTE] "toolkit.telemetry.enabled" is now LOCKED to reflect prerelease (true) or release builds (false) [2]
 * [1] https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/internals/preferences.html
 * [2] https://medium.com/georg-fritzsche/data-preference-changes-in-firefox-58-2d5df9c428b5 ***/
user_pref("toolkit.telemetry.unified", false);
user_pref("toolkit.telemetry.enabled", false); // see [NOTE]
user_pref("toolkit.telemetry.server", "data:,");
user_pref("toolkit.telemetry.archive.enabled", false);
user_pref("toolkit.telemetry.newProfilePing.enabled", false); // [FF55+]
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); // [FF55+]
user_pref("toolkit.telemetry.updatePing.enabled", false); // [FF56+]
user_pref("toolkit.telemetry.bhrPing.enabled", false); // [FF57+] Background Hang Reporter
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); // [FF57+]
/* 0333: disable Telemetry Coverage
 * [1] https://blog.mozilla.org/data/2018/08/20/effectively-measuring-search-in-firefox/ ***/
user_pref("toolkit.telemetry.coverage.opt-out", true); // [HIDDEN PREF]
user_pref("toolkit.coverage.opt-out", true); // [FF64+] [HIDDEN PREF]
user_pref("toolkit.coverage.endpoint.base", "");
/* 0334: disable PingCentre telemetry (used in several System Add-ons) [FF57+]
 * Defense-in-depth: currently covered by 0331 ***/
user_pref("browser.ping-centre.telemetry", false);
/* 0335: disable Firefox Home (Activity Stream) telemetry ***/
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
user_pref("browser.newtabpage.activity-stream.telemetry", false);

/** STUDIES ***/
/* 0340: disable Studies
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to install and run studies ***/
user_pref("app.shield.optoutstudies.enabled", false);
/* 0341: disable Normandy/Shield [FF60+]
 * Shield is a telemetry system that can push and test "recipes"
 * [1] https://mozilla.github.io/normandy/ ***/
user_pref("app.normandy.enabled", false);
user_pref("app.normandy.api_url", "");

/** CRASH REPORTS ***/
/* 0350: disable Crash Reports ***/
user_pref("breakpad.reportURL", "");
user_pref("browser.tabs.crashReporting.sendReport", false); // [FF44+]
   // user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // [FF51+] [DEFAULT: false]
/* 0351: enforce no submission of backlogged Crash Reports [FF58+]
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send backlogged crash reports  ***/
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); // [DEFAULT: false]

/** OTHER ***/
/* 0360: disable Captive Portal detection
 * [1] https://www.eff.org/deeplinks/2017/08/how-captive-portals-interfere-wireless-security-and-privacy ***/
user_pref("captivedetect.canonicalURL", "");
user_pref("network.captive-portal-service.enabled", false); // [FF52+]
/* 0361: disable Network Connectivity checks [FF65+]
 * [1] https://bugzilla.mozilla.org/1460537 ***/
user_pref("network.connectivity-service.enabled", false);

/*** [SECTION 0400]: SAFE BROWSING (SB)
   SB has taken many steps to preserve privacy. If required, a full url is never sent
   to Google, only a part-hash of the prefix, hidden with noise of other real part-hashes.
   Firefox takes measures such as stripping out identifying parameters and since SBv4 (FF57+)
   doesn't even use cookies. (#Turn on browser.safebrowsing.debug to monitor this activity)

   [1] https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox/
   [2] https://wiki.mozilla.org/Security/Safe_Browsing
   [3] https://support.mozilla.org/kb/how-does-phishing-and-malware-protection-work
   [4] https://educatedguesswork.org/posts/safe-browsing-privacy/
***/
user_pref("_user.js.parrot", "0400 syntax error: the parrot's passed on!");
/* 0401: disable SB (Safe Browsing)
 * [WARNING] Do this at your own risk! These are the master switches
 * [SETTING] Privacy & Security>Security>... Block dangerous and deceptive content ***/
   // user_pref("browser.safebrowsing.malware.enabled", false);
   // user_pref("browser.safebrowsing.phishing.enabled", false);
/* 0402: disable SB checks for downloads (both local lookups + remote)
 * This is the master switch for the safebrowsing.downloads* prefs (0403, 0404)
 * [SETTING] Privacy & Security>Security>... "Block dangerous downloads" ***/
   // user_pref("browser.safebrowsing.downloads.enabled", false);
/* 0403: disable SB checks for downloads (remote)
 * To verify the safety of certain executable files, Firefox may submit some information about the
 * file, including the name, origin, size and a cryptographic hash of the contents, to the Google
 * Safe Browsing service which helps Firefox determine whether or not the file should be blocked
 * [SETUP-SECURITY] If you do not understand this, or you want this protection, then override this ***/
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
   // user_pref("browser.safebrowsing.downloads.remote.url", ""); // Defense-in-depth
/* 0404: disable SB checks for unwanted software
 * [SETTING] Privacy & Security>Security>... "Warn you about unwanted and uncommon software" ***/
   // user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
   // user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
/* 0405: disable "ignore this warning" on SB warnings [FF45+]
 * If clicked, it bypasses the block for that session. This is a means for admins to enforce SB
 * [TEST] see https://github.com/arkenfox/user.js/wiki/Appendix-A-Test-Sites#-mozilla
 * [1] https://bugzilla.mozilla.org/1226490 ***/
   // user_pref("browser.safebrowsing.allowOverride", false);

Copy tất, tạo ra một file tên là user.js rồi ném thẳng vào folder profile Firefox tìm trong about:support -> Open Profile Folder -> Khởi động lại Firefox.

Nếu muốn tự update, vào link chính chủ copy mục 0330 tới mục 0405 y như trên, chú ý không copy toàn bộ vì cái Arkenfox này khiến Firefox khó dùng gấp trăm lần https://github.com/arkenfox/user.js/blob/master/user.js
 
Last edited:
Bản FF tete009 và portable thường khác gì nhau vậy thím?
Portable thường thì nó ko chọn default browser, quick launch toolbar đc, còn cái này thì đc.
inject thêm mấy cái .dll để load page mượt hơn, có vụ chọn luôn bật hết core cpu để render nữa khá hay
1674490297990.png
 
Mình xài thử uBlock Origin v3 trên Chromium rồi, không có Element Picker.

V3 chính là yếu tố tiên quyết đó, Manifest V3 chặt gần hết tính năng của uBlock/Adblock/Adguard rồi nên gần như mấy addon chặn quảng cáo thành phế vật hết, có dùng sau này bị tụi chống quảng cáo tụi nó nã đạn cho, không được dùng nhiều hơn 50.000 rule (cứ 1 dòng kiểu ||vẩu.vn tính là 1 rule), lại còn không cập nhập tự động được khi đó mới thấm thía.

Lý do Manifest V3 được tạo ra là để phế đi võ công của addon chặn quảng cáo, tuy nhiên phía Google thì luôn miệng bào chữa là Manifest V3 tăng tốc Chrome và khiến Chrome bảo mật hơn, chặn quảng cáo còn không xong thì bảo mật bằng niềm tin, cái khiến người ta dính virus nhiều nhất chính là bị lừa kích hoạt virus, kiểu gửi virus qua email, rồi nháy vô exe ăn ngay con ransomware (virus tống tình). Tham khảo các bài viết sau:

https://kynguyenso.plo.vn/nen-tang-...-hoa-cac-trinh-chan-quang-cao-post701566.html
https://www.eff.org/deeplinks/2021/12/chrome-users-beware-manifest-v3-deceitful-and-threatening - của EFF rất uy tín
https://www.ghacks.net/?s=manifest+v3 - một tràng bài viết của Ghacks bóc phốt Manifest V3
 
Từ đợt Google thông báo sẽ ép chuyển sang Manifest v3 là em đã rục rịch có ý muốn chuyển sang FF rồi nhưng google nó hoãn lại nên lại thôi. Hôm qua đầu năm với vào thread này đọc thấy nhiều bác có kiến thức về FF nên em quyết định chuyển sang luôn. Máy đợt trước có cài FF Nightly rồi để đấy (bản 88 có logo con doge cho vui, một hôm vào lại update lên mất) nên lôi ra dùng luôn. Em đã import dữ liệu từ Chrome sang, tạo cái tk FF để sync cho dễ với đặt cài theme với một số tiện ích nhẹ nhàng:
1674544068545.png

Theme này em đã thích từ lúc dùng Mypal 68 cho WinXP để chơi chơi, với tiện ích thì bên cạnh mấy cái đã có từ bên chrome thì cài thêm được mấy cái nữa. FF đã đặt thành trình duyệt mặc định, ngoài ra cài đặt của FF chưa chỉnh gì thêm.

Em có mấy câu hỏi:
FF Nightly có mod được giao diện để đổi logo gốc thành logo có con doge được ở mọi nơi không? (Shortcut, taskbar, start menu với mọi logo FF trong trình duyệt). Cài vì meme nên vẫn muốn để meme tẹo cho vui.
Có trình duyệt nào base FF trên android mà cài được tiện ích dành cho máy tính được ko, nếu ko thì em dùng Bromite vì em dùng custom rom và họ đang xem xét hỗ trợ bromite webview luôn, FF ko có bản cho Android System Webview.
FF có cái gì hay hay chỉ thêm cho em với, đọc thread này cũng biết được thêm tẹo ạ, mảng trình duyệt em cũng ko tốt lắm.
 
Em có mấy câu hỏi:
FF Nightly có mod được giao diện để đổi logo gốc thành logo có con doge được ở mọi nơi không? (Shortcut, taskbar, start menu với mọi logo FF trong trình duyệt). Cài vì meme nên vẫn muốn để meme tẹo cho vui.
Có trình duyệt nào base FF trên android mà cài được tiện ích dành cho máy tính được ko, nếu ko thì em dùng Bromite vì em dùng custom rom và họ đang xem xét hỗ trợ bromite webview luôn, FF ko có bản cho Android System Webview.
FF có cái gì hay hay chỉ thêm cho em với, đọc thread này cũng biết được thêm tẹo ạ, mảng trình duyệt em cũng ko tốt lắm.

Của ngon vật lạ từ thread này đa phần nằm trong bình luận ấy chứ, ví dụ để giao diện con cún thì dùng Browser Toolbox -> Style Editor là chỉnh trực tiếp được, biết code CSS cái gì cũng làm được. Hướng dẫn cách bật Browser Toolbox (bị tắt đi mặc định): https://voz.vn/t/tong-hop-nhung-addon-chat-cho-firefox-pc-mobile.682181/post-22332809

Ví dụ đây là Firefox của mình đã được thay đổi giao diện bằng userChrome.css: https://streamable.com/6rhyux

Còn Firefox cho Android thì Beta trở lên, Fennec hay Ice Raven hỗ trợ cài addon trên PC nữa, tuy nhiên có chút tỉ lệ không tương thích cơ mà rất nhỏ, tham khảo đoạn cuối cùng ở #1.

Bởi thế nên quay về FF từ Chromium.

Ghét FF cái là mỗi lần nó ra phiên bản mới là nó thay đổi giao diện (thêm nút addon để gom mấy cái addon vào như tụi Chromium) thế là lại phải mod.

Vụ đổi giao diện thì đúng là Firefox nó ngu thật, đổi giao diện rất ảnh hưởng tới trải nghiệm người dùng vì đến mình đây dùng Firefox từ hồi 2.0 tới giờ mà mỗi lần nó đổi giao diện là lại phải tìm thiết lập trong Settings mệt nghỉ, tuy nhiên cũng có những thay đổi tốt như nút bấm trên Context Menu này ăn cắp bản quyền từ Chrome đúng thứ:

Đồng chí NFT_GOD này còn bị đem lên Youtube tế vì mang tiếng là thánh mà để nhiễm con virus căn bản:
 
Của ngon vật lạ từ thread này đa phần nằm trong bình luận ấy chứ, ví dụ để giao diện con cún thì dùng Browser Toolbox -> Style Editor là chỉnh trực tiếp được, biết code CSS cái gì cũng làm được. Hướng dẫn cách bật Browser Toolbox (bị tắt đi mặc định): https://voz.vn/t/tong-hop-nhung-addon-chat-cho-firefox-pc-mobile.682181/post-22332809

Ví dụ đây là Firefox của mình đã được thay đổi giao diện bằng userChrome.css: https://streamable.com/6rhyux

Còn Firefox cho Android thì Beta trở lên, Fennec hay Ice Raven hỗ trợ cài addon trên PC nữa, tuy nhiên có chút tỉ lệ không tương thích cơ mà rất nhỏ, tham khảo đoạn cuối cùng ở #1.



Vụ đổi giao diện thì đúng là Firefox nó ngu thật, đổi giao diện rất ảnh hưởng tới trải nghiệm người dùng vì đến mình đây dùng Firefox từ hồi 2.0 tới giờ mà mỗi lần nó đổi giao diện là lại phải tìm thiết lập trong Settings mệt nghỉ, tuy nhiên cũng có những thay đổi tốt như nút bấm trên Context Menu này ăn cắp bản quyền từ Chrome đúng thứ:


Đồng chí NFT_GOD này còn bị đem lên Youtube tế vì mang tiếng là thánh mà để nhiễm con virus căn bản:
bản tete cách nào chạy 32bit thím nhỉ?
Với mình hỏi cái là ff có extension nào tương tự J2Team for chrome ko nạ? Nó hide status online facebook hay ho phết.
 
bản tete cách nào chạy 32bit thím nhỉ?
Với mình hỏi cái là ff có extension nào tương tự J2Team for chrome ko nạ? Nó hide status online facebook hay ho phết.

Bản 32 kể từ 107 bị cắt rồi do phía Mozilla thay đổi code kiểu gì compile (biên dịch sang exe) xong không chạy được, muốn có 32bit chỉ có dùng bản cũ 106 như mình.
Còn addon kiểu J2Team thì hiện tại Firefox không có do Facebook thay đổi kiểm tra seen trong websocket, phải lọc websocket mới chặn được, cách tốt nhất là gửi phản hồi cho phía J2Team để họ port qua Firefox.

Ngoài ra có thể cài nó cho Firefox được, thread này mình có chỉ cách cài extension của Chrome cho Firefox, còn đây là bài viết cho thấy J2Team có thể chạy trên Firefox được: https://m.facebook.com/groups/j2team.community/permalink/658289087836548/

HD: https://voz.vn/t/tong-hop-nhung-addon-chat-cho-firefox-pc-mobile.682181/post-22285202
 
Phần này ăn cắp bản quyền của tụi Librefox, ArkenFox là ngon nhất: https://github.com/arkenfox/user.js/blob/master/user.js

100% tắt hết telemetry, không bao giờ hỏng dù một tính năng của Firefox.

Code:
/** TELEMETRY ***/
/* 0330: disable new data submission [FF41+]
 * If disabled, no policy is shown or upload takes place, ever
 * [1] https://bugzilla.mozilla.org/1195552 ***/
user_pref("datareporting.policy.dataSubmissionEnabled", false);
/* 0331: disable Health Reports
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send technical... data ***/
user_pref("datareporting.healthreport.uploadEnabled", false);
/* 0332: disable telemetry
 * The "unified" pref affects the behavior of the "enabled" pref
 * - If "unified" is false then "enabled" controls the telemetry module
 * - If "unified" is true then "enabled" only controls whether to record extended data
 * [NOTE] "toolkit.telemetry.enabled" is now LOCKED to reflect prerelease (true) or release builds (false) [2]
 * [1] https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/internals/preferences.html
 * [2] https://medium.com/georg-fritzsche/data-preference-changes-in-firefox-58-2d5df9c428b5 ***/
user_pref("toolkit.telemetry.unified", false);
user_pref("toolkit.telemetry.enabled", false); // see [NOTE]
user_pref("toolkit.telemetry.server", "data:,");
user_pref("toolkit.telemetry.archive.enabled", false);
user_pref("toolkit.telemetry.newProfilePing.enabled", false); // [FF55+]
user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); // [FF55+]
user_pref("toolkit.telemetry.updatePing.enabled", false); // [FF56+]
user_pref("toolkit.telemetry.bhrPing.enabled", false); // [FF57+] Background Hang Reporter
user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); // [FF57+]
/* 0333: disable Telemetry Coverage
 * [1] https://blog.mozilla.org/data/2018/08/20/effectively-measuring-search-in-firefox/ ***/
user_pref("toolkit.telemetry.coverage.opt-out", true); // [HIDDEN PREF]
user_pref("toolkit.coverage.opt-out", true); // [FF64+] [HIDDEN PREF]
user_pref("toolkit.coverage.endpoint.base", "");
/* 0334: disable PingCentre telemetry (used in several System Add-ons) [FF57+]
 * Defense-in-depth: currently covered by 0331 ***/
user_pref("browser.ping-centre.telemetry", false);
/* 0335: disable Firefox Home (Activity Stream) telemetry ***/
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
user_pref("browser.newtabpage.activity-stream.telemetry", false);

/** STUDIES ***/
/* 0340: disable Studies
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to install and run studies ***/
user_pref("app.shield.optoutstudies.enabled", false);
/* 0341: disable Normandy/Shield [FF60+]
 * Shield is a telemetry system that can push and test "recipes"
 * [1] https://mozilla.github.io/normandy/ ***/
user_pref("app.normandy.enabled", false);
user_pref("app.normandy.api_url", "");

/** CRASH REPORTS ***/
/* 0350: disable Crash Reports ***/
user_pref("breakpad.reportURL", "");
user_pref("browser.tabs.crashReporting.sendReport", false); // [FF44+]
   // user_pref("browser.crashReports.unsubmittedCheck.enabled", false); // [FF51+] [DEFAULT: false]
/* 0351: enforce no submission of backlogged Crash Reports [FF58+]
 * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send backlogged crash reports  ***/
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); // [DEFAULT: false]

/** OTHER ***/
/* 0360: disable Captive Portal detection
 * [1] https://www.eff.org/deeplinks/2017/08/how-captive-portals-interfere-wireless-security-and-privacy ***/
user_pref("captivedetect.canonicalURL", "");
user_pref("network.captive-portal-service.enabled", false); // [FF52+]
/* 0361: disable Network Connectivity checks [FF65+]
 * [1] https://bugzilla.mozilla.org/1460537 ***/
user_pref("network.connectivity-service.enabled", false);

/*** [SECTION 0400]: SAFE BROWSING (SB)
   SB has taken many steps to preserve privacy. If required, a full url is never sent
   to Google, only a part-hash of the prefix, hidden with noise of other real part-hashes.
   Firefox takes measures such as stripping out identifying parameters and since SBv4 (FF57+)
   doesn't even use cookies. (#Turn on browser.safebrowsing.debug to monitor this activity)
   [1] https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox/
   [2] https://wiki.mozilla.org/Security/Safe_Browsing
   [3] https://support.mozilla.org/kb/how-does-phishing-and-malware-protection-work
   [4] https://educatedguesswork.org/posts/safe-browsing-privacy/
***/
user_pref("_user.js.parrot", "0400 syntax error: the parrot's passed on!");
/* 0401: disable SB (Safe Browsing)
 * [WARNING] Do this at your own risk! These are the master switches
 * [SETTING] Privacy & Security>Security>... Block dangerous and deceptive content ***/
   // user_pref("browser.safebrowsing.malware.enabled", false);
   // user_pref("browser.safebrowsing.phishing.enabled", false);
/* 0402: disable SB checks for downloads (both local lookups + remote)
 * This is the master switch for the safebrowsing.downloads* prefs (0403, 0404)
 * [SETTING] Privacy & Security>Security>... "Block dangerous downloads" ***/
   // user_pref("browser.safebrowsing.downloads.enabled", false);
/* 0403: disable SB checks for downloads (remote)
 * To verify the safety of certain executable files, Firefox may submit some information about the
 * file, including the name, origin, size and a cryptographic hash of the contents, to the Google
 * Safe Browsing service which helps Firefox determine whether or not the file should be blocked
 * [SETUP-SECURITY] If you do not understand this, or you want this protection, then override this ***/
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
   // user_pref("browser.safebrowsing.downloads.remote.url", ""); // Defense-in-depth
/* 0404: disable SB checks for unwanted software
 * [SETTING] Privacy & Security>Security>... "Warn you about unwanted and uncommon software" ***/
   // user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
   // user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
/* 0405: disable "ignore this warning" on SB warnings [FF45+]
 * If clicked, it bypasses the block for that session. This is a means for admins to enforce SB
 * [TEST] see https://github.com/arkenfox/user.js/wiki/Appendix-A-Test-Sites#-mozilla
 * [1] https://bugzilla.mozilla.org/1226490 ***/
   // user_pref("browser.safebrowsing.allowOverride", false);

Copy tất, tạo ra một file tên là user.js rồi ném thẳng vào folder profile Firefox tìm trong about:support -> Open Profile Folder.
thank thím
 
Back
Top