diff --git a/packages/secubox-toolbox/www/toolbox/index.html b/packages/secubox-toolbox/www/toolbox/index.html
index 55341c14..62f65772 100644
--- a/packages/secubox-toolbox/www/toolbox/index.html
+++ b/packages/secubox-toolbox/www/toolbox/index.html
@@ -179,7 +179,7 @@
-
🛑 Pubs bloquées (24h)
+
🛑 Trackers & pubs bloqués (24h)
loading…
-
👤 Top visiteurs (pubs bloquées)
+
👤 Top visiteurs (trackers/pubs bloqués)
@@ -617,24 +617,24 @@ async function loadAds() {
const kpi = document.getElementById('ads-kpi');
const esc = s => String(s).replace(/&/g,'&').replace(//g,'>');
if (!d || d.__error) { kpi.innerHTML = `
err${(d&&d.__error)||'no data'}`; return; }
- kpi.innerHTML = `
Pubs bloquées ${d.total_blocked||0}`
- + `
Ko économisés ${Math.round((d.total_bytes||0)/1024)}`
+ kpi.innerHTML = `
Trackers & pubs bloqués ${d.total_blocked||0}`
+ + `
Ko évités (est.) ~${Math.round((d.total_bytes||0)/1024)}`
+ `
Silenced ${(d.by_action&&d.by_action.silent)||0}`
+ `
FenĂŞtre ${d.window_hours||24}h`;
- const hostRows = (d.top_hosts||[]).slice(0, 5).map(r=>`
${esc(r.host)} | ${r.hits} | ${Math.round((r.bytes||0)/1024)} |
`).join('');
+ const hostRows = (d.top_hosts||[]).slice(0, 5).map(r=>`
${esc(r.host)} | ${r.hits} | ~${Math.round((r.bytes||0)/1024)} |
`).join('');
const siteRows = (d.top_sites||[]).slice(0, 5).map(r=>`
${esc(r.site)} | ${r.hits} |
`).join('');
document.getElementById('ads-hosts').innerHTML = hostRows
- ? '
| Ad host | bloqués | Ko |
'+hostRows+'
'
- : '
aucune pub bloquée dans la fenêtre
';
+ ? '
| Tracker / pub host | bloqués | Ko (est.) |
'+hostRows+'
'
+ : '
rien de bloqué dans la fenêtre
';
document.getElementById('ads-sites').innerHTML = siteRows
- ? '
| Site | pubs bloquées |
'+siteRows+'
'
+ ? '
| Site | trackers/pubs bloqués |
'+siteRows+'
'
: '';
const visRows = (d.top_visitors||[]).slice(0, 5).map(r=>{
const mh = esc(r.mac_hash);
return `
${mh} | ${r.hits} |
`;
}).join('');
document.getElementById('ads-visitors').innerHTML = visRows
- ? '
| Visiteur | pubs bloquées |
'+visRows+'
'
+ ? '
| Visiteur | trackers/pubs |
'+visRows+'
'
: '
aucun visiteur dans la fenĂŞtre
';
}
@@ -645,7 +645,7 @@ async function loadAdsClient(mh) {
const d = await J('/admin/ad-stats/client/'+encodeURIComponent(mh));
if (!d || d.__error) { detail.innerHTML = `
${(d&&d.__error)||'no data'}
`; return; }
const rows = (d.top_hosts||[]).slice(0, 5).map(r=>`
${esc(r.host)} | ${r.hits} | ${Math.round((r.bytes||0)/1024)} |
`).join('');
- detail.innerHTML = `
👤 ${esc(d.mac_hash)} — ${d.total||0} pubs bloquées
`
+ detail.innerHTML = `
👤 ${esc(d.mac_hash)} — ${d.total||0} trackers/pubs bloqués
`
+ (rows
? '
| Ad host | bloqués | Ko |
'+rows+'
'
: '
aucune pub bloquée pour ce visiteur
');