nix-files/pkgs/additional/firefox-extensions/bypass-paywalls-clean/0003-disable-metrics.patch

28 lines
800 B
Diff
Raw Normal View History

2024-01-16 19:10:32 +00:00
commit aaee6f230dbc4355dcf7fe898df131034101bbbd
Author: Colin <colin@uninsane.org>
2024-01-16 19:10:32 +00:00
Date: 2024-01-16 18:48:05 +0000
disable metrics reporting
diff --git a/background.js b/background.js
2024-01-16 19:10:32 +00:00
index eed1089..281b77b 100644
--- a/background.js
+++ b/background.js
2024-01-16 19:10:32 +00:00
@@ -979,16 +979,6 @@ ext_api.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
}
});
2024-01-16 19:10:32 +00:00
-setTimeout(function () {
-setInterval(function () {
- let current_date_str = currentDateStr();
- if (last_date_str < current_date_str) {
- bpc_count_daily_users(current_date_str);
- last_date_str = current_date_str;
- }
-}, 60 * 60 * 1000);
2024-01-16 19:10:32 +00:00
-}, 1000);
-
var extraInfoSpec = ['blocking', 'requestHeaders'];
if (ext_api.webRequest.OnBeforeSendHeadersOptions.hasOwnProperty('EXTRA_HEADERS'))
2024-01-16 19:10:32 +00:00
extraInfoSpec.push('extraHeaders');