From d26992d9057475f5603e410cf2efff304137b9a5 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 14 Jun 2026 10:26:34 +0200 Subject: [PATCH] feat(webext): cap popup top-tracker list to 5 (closes #568) popup top-tracker list 12 -> 5. webext 0.1.3; /wg/toolbox.xpi tag-pin -> webext-v0.1.3. secubox-toolbox 2.6.24. Co-Authored-By: Claude Opus 4.8 --- clients/webext-toolbox/README.md | 2 +- clients/webext-toolbox/install-firefox-linux.sh | 2 +- clients/webext-toolbox/manifest.json | 2 +- clients/webext-toolbox/popup/popup.js | 2 +- packages/secubox-toolbox/debian/changelog | 9 ++++++++- packages/secubox-toolbox/sbin/secubox-toolbox-fetch-xpi | 2 +- packages/secubox-toolbox/secubox_toolbox/api.py | 2 +- wiki/Browser-Extension.md | 2 +- 8 files changed, 15 insertions(+), 8 deletions(-) diff --git a/clients/webext-toolbox/README.md b/clients/webext-toolbox/README.md index f1b8b855..801d6654 100644 --- a/clients/webext-toolbox/README.md +++ b/clients/webext-toolbox/README.md @@ -31,7 +31,7 @@ to your cabine over the R3 tunnel — no third-party calls. Published release `.xpi` (downloadable directly): ``` -https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.2/secubox-toolbox-webext.xpi +https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.3/secubox-toolbox-webext.xpi ``` The toolbox also serves it from the cabine: diff --git a/clients/webext-toolbox/install-firefox-linux.sh b/clients/webext-toolbox/install-firefox-linux.sh index b304f149..64756dae 100755 --- a/clients/webext-toolbox/install-firefox-linux.sh +++ b/clients/webext-toolbox/install-firefox-linux.sh @@ -15,7 +15,7 @@ set -euo pipefail DEFAULT_HOST="kbin.gk2.secubox.in" -RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.2/secubox-toolbox-webext.xpi" +RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.3/secubox-toolbox-webext.xpi" SELF_DIR="$(cd "$(dirname "$0")" && pwd)" say(){ printf '\033[1;36m▸\033[0m %s\n' "$*"; } diff --git a/clients/webext-toolbox/manifest.json b/clients/webext-toolbox/manifest.json index 20892263..7ea8de3d 100644 --- a/clients/webext-toolbox/manifest.json +++ b/clients/webext-toolbox/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "SecuBox ToolBoX — Cartographie sociale", - "version": "0.1.2", + "version": "0.1.3", "description": "Surface the SecuBox R3 toolbox live tracker analysis (cartographie sociale) in your browser: live badge, per-session trackers, mini Round-Eye graph, RGPD wipe + PDF report.", "browser_specific_settings": { "gecko": { diff --git a/clients/webext-toolbox/popup/popup.js b/clients/webext-toolbox/popup/popup.js index 47746fc8..2d9f7f6b 100644 --- a/clients/webext-toolbox/popup/popup.js +++ b/clients/webext-toolbox/popup/popup.js @@ -21,7 +21,7 @@ function fillTopList(nodes) { (nodes || []) .slice() .sort((a, b) => (b.hits || 0) - (a.hits || 0)) - .slice(0, 12) + .slice(0, 5) .forEach((n) => { const row = document.createElement("div"); row.className = "row"; diff --git a/packages/secubox-toolbox/debian/changelog b/packages/secubox-toolbox/debian/changelog index 697e845c..3c35accd 100644 --- a/packages/secubox-toolbox/debian/changelog +++ b/packages/secubox-toolbox/debian/changelog @@ -1,3 +1,10 @@ +secubox-toolbox (2.6.24-1~bookworm1) bookworm; urgency=medium + + * webext: cap the popup top-tracker list to 5 items (#568); webext 0.1.3. + /wg/toolbox.xpi tag-pin → webext-v0.1.3. + + -- Gerald KERMA Sat, 13 Jun 2026 18:30:00 +0200 + secubox-toolbox (2.6.23-1~bookworm1) bookworm; urgency=medium * Modular mitm filters + R3+/R4 silent ad/banner ghoster (#566). @@ -80,7 +87,7 @@ secubox-toolbox (2.6.19-1~bookworm1) bookworm; urgency=medium transparent 1×1 fallback → the tier-coloured circle shows through), clipped to the bubble. No IP/ASN displayed anywhere. - Companion webext popup gains favicons in its top-tracker list - (clients/webext-toolbox 0.1.2). /wg/toolbox.xpi tag-pin → webext-v0.1.2. + (clients/webext-toolbox 0.1.2). /wg/toolbox.xpi tag-pin → webext-v0.1.3. -- Gerald KERMA Sat, 13 Jun 2026 15:30:00 +0200 diff --git a/packages/secubox-toolbox/sbin/secubox-toolbox-fetch-xpi b/packages/secubox-toolbox/sbin/secubox-toolbox-fetch-xpi index 16dcd8e7..43d228c1 100755 --- a/packages/secubox-toolbox/sbin/secubox-toolbox-fetch-xpi +++ b/packages/secubox-toolbox/sbin/secubox-toolbox-fetch-xpi @@ -16,7 +16,7 @@ DEST_DIR="/var/lib/secubox/toolbox/webext" DEST="${DEST_DIR}/secubox-toolbox-webext.xpi" # Tag-pinned (not /latest/): the webext release is make_latest:false so it # doesn't steal "latest" from the Android APK release. Bump on new webext-v*. -RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.2/secubox-toolbox-webext.xpi" +RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.3/secubox-toolbox-webext.xpi" log() { logger -t "$MODULE" -- "$*" 2>/dev/null || echo "[$MODULE] $*" >&2; } diff --git a/packages/secubox-toolbox/secubox_toolbox/api.py b/packages/secubox-toolbox/secubox_toolbox/api.py index 4c166b77..ee9d5ce0 100644 --- a/packages/secubox-toolbox/secubox_toolbox/api.py +++ b/packages/secubox-toolbox/secubox_toolbox/api.py @@ -1395,7 +1395,7 @@ async def wg_toolbox_apk() -> Response: _WEBEXT_XPI = Path("/var/lib/secubox/toolbox/webext/secubox-toolbox-webext.xpi") _WEBEXT_XPI_RELEASE = ( "https://github.com/CyberMind-FR/secubox-deb/releases/download/" - "webext-v0.1.2/secubox-toolbox-webext.xpi" + "webext-v0.1.3/secubox-toolbox-webext.xpi" ) diff --git a/wiki/Browser-Extension.md b/wiki/Browser-Extension.md index 860c18c1..009b9eeb 100644 --- a/wiki/Browser-Extension.md +++ b/wiki/Browser-Extension.md @@ -18,7 +18,7 @@ R3 tunnel — no third-party calls. Published release `.xpi` (downloadable directly): ``` -https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.2/secubox-toolbox-webext.xpi +https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.3/secubox-toolbox-webext.xpi ``` The toolbox also serves it from the cabine: