From 73c8da05b7592e8d26a2cfd3892c8598d9e70141 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 8 Dec 2017 07:54:49 -0500 Subject: [PATCH] Fix #335 Additionally, performance improvements: - Reduce overhead of collapsing elements (see https://github.com/gorhill/uBlock/issues/2839) - Cache decomposition of source hostname when matrix-filtering Also, various code review. --- src/_locales/en/messages.json | 4 + src/css/dashboard-common.css | 4 +- src/js/background.js | 1 + src/js/contentscript.js | 314 +++++++++++++++----------------- src/js/matrix.js | 64 ++++--- src/js/messaging.js | 85 ++++----- src/js/pagestats.js | 326 +++++++++++++++++++++++----------- src/js/settings.js | 141 +++++++++------ src/js/tab.js | 13 -- src/js/traffic.js | 53 +++--- src/settings.html | 36 ++-- 11 files changed, 586 insertions(+), 455 deletions(-) diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index e03bb85..a79b536 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -342,6 +342,10 @@ "message": "Collapse placeholder of blocked elements", "description": "English: Collapse placeholder of blocked elements" }, + "settingsCollapseBlacklisted" : { + "message": "Collapse placeholder of blacklisted elements", + "description": "A setting in the dashboard's Settings pane: 'blacklisted' means 'for which there is a specific block rule', 'specific' means 'a rule for which the destination hostname is not `*`'" + }, "settingsNoscriptTagsSpoofed" : { "message": "Spoof