From 9fc2426e83f5da8420e633494f4576515995e3ee Mon Sep 17 00:00:00 2001 From: zzz Date: Sat, 25 Nov 2023 12:47:48 -0500 Subject: [PATCH] i2psnark: Remove things in html, not by hiding them in CSS --- apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java | 2 +- apps/i2psnark/resources/themes/dark/snark.css | 4 ---- apps/i2psnark/resources/themes/light/snark.css | 4 ---- apps/i2psnark/resources/themes/ubergine/snark.css | 4 ---- apps/i2psnark/resources/themes/vanilla/snark.css | 4 ---- 5 files changed, 1 insertion(+), 17 deletions(-) diff --git a/apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java b/apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java index 1cd378822f..ae3763994d 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java +++ b/apps/i2psnark/java/src/org/klomp/snark/dht/KRPC.java @@ -688,7 +688,7 @@ public class KRPC implements I2PSessionMuxedListener, DHT { public String renderStatusHTML() { long uptime = Math.max(1000, _context.clock().now() - _started); StringBuilder buf = new StringBuilder(256); - buf.append("

DHT DEBUG


TX: ").append(_txPkts.get()).append(" pkts / ") + buf.append("




TX: ").append(_txPkts.get()).append(" pkts / ") .append(DataHelper.formatSize2(_txBytes.get())).append("B / ") .append(DataHelper.formatSize2Decimal(_txBytes.get() * 1000 / uptime)).append("Bps
" + "RX: ").append(_rxPkts.get()).append(" pkts / ") diff --git a/apps/i2psnark/resources/themes/dark/snark.css b/apps/i2psnark/resources/themes/dark/snark.css index 7a2522332f..7491a0db5f 100644 --- a/apps/i2psnark/resources/themes/dark/snark.css +++ b/apps/i2psnark/resources/themes/dark/snark.css @@ -2177,10 +2177,6 @@ input#toggle_addtorrent:checked + label + hr + table, input#toggle_createtorrent margin: -23px 0 -12px; } -.dhtDebug th b:first-of-type, .dhtDebug th b:first-of-type + br + hr.debug { - display: none; -} - input#toggle_debug:not(checked) + label { padding-bottom: 2px; } diff --git a/apps/i2psnark/resources/themes/light/snark.css b/apps/i2psnark/resources/themes/light/snark.css index 1bd4e4b2ff..fe70e7a213 100644 --- a/apps/i2psnark/resources/themes/light/snark.css +++ b/apps/i2psnark/resources/themes/light/snark.css @@ -1837,10 +1837,6 @@ input#toggle_addtorrent:checked + label + hr + table, input#toggle_createtorrent margin: -19px 0 -12px; } -.dhtDebug th b:first-of-type, .dhtDebug th b:first-of-type + br + hr.debug { - display: none; -} - input#toggle_debug:not(checked) + label { padding-bottom: 2px; } diff --git a/apps/i2psnark/resources/themes/ubergine/snark.css b/apps/i2psnark/resources/themes/ubergine/snark.css index 8789cce143..a28bc97ea7 100644 --- a/apps/i2psnark/resources/themes/ubergine/snark.css +++ b/apps/i2psnark/resources/themes/ubergine/snark.css @@ -2304,10 +2304,6 @@ input#toggle_debug:not(checked) + label { } } -.dhtDebug th b:first-of-type, .dhtDebug th b:first-of-type + br + hr.debug { - display: none; -} - input#toggle_debug:not(checked) + label { padding-bottom: 2px; } diff --git a/apps/i2psnark/resources/themes/vanilla/snark.css b/apps/i2psnark/resources/themes/vanilla/snark.css index 88bc14d54d..1d612a33bd 100644 --- a/apps/i2psnark/resources/themes/vanilla/snark.css +++ b/apps/i2psnark/resources/themes/vanilla/snark.css @@ -2152,10 +2152,6 @@ hr.debug:last-child { border-radius: 0 0 2px 2px; } -.dhtDebug th b:first-of-type, .dhtDebug th b:first-of-type + br + hr.debug { - display: none; -} - /* toggle debug view */ input#toggle_debug:not(checked) + label {