~dr|z3d
@RN
@StormyCloud
@T3s|4
@T3s|4_
@eyedeekay
@orignal
@postman
@zzz
%Liorar
%cumlord
%snex
+FreefallHeavens
+Leopold
+Xeha
+ardu
+bak83
+hk
+mareki2p
+poriori
+profetikla
+r00tobo_BNC
+radakayot
+uop23ip
AHON1
Arch
Danny
DeltaOreo
FreeB
Irc2PGuest31654
Irc2PGuest3870
Irc2PGuest99391
Meow
Onn4l7h
Onn4|7h
acetone_
carried6590
enoxa
idontpee
maylay
not_bob_afk
plap
qend-irc2p
shiver_
simprelay
solidx66
u5657
username
weko_
woodwose
zer0bitz_
dr|z3d
yeah, found your main workstation, orignal, as I was saying...
zzz
dr|z3d, you happen to have the socks plugin installed somewhere?
zzz
because I have a js bug report
dr|z3d
not installed, zzz, what's the issue?
zzz
every time I click on the config expand/collapse, it adds another <link> to the DOM <head>
zzz
I see clear() code in there but it's not working
zzz
so click back and forth a few times and you have a dozen dup <link>s in the DOM
zzz
and now I have the same issue in prometheus since I copied it over
dr|z3d
sounds like an easy fix. could probably use some optimization at the same time.
zzz
ok thanks. if you install it you'll be able to debug it
dr|z3d
I got it installed I noticed, just wasn't running it.
zzz
you don't actually need an external proxy to see it, just let it complain
dr|z3d
sure
dr|z3d
so you're seeing errors in the browser console when you toggle the configs?
zzz
no
zzz
it's all working, just dup links in the DOM
dr|z3d
yup, ok, see it.
dr|z3d
here you go, zzz: cake.i2p/view/tH2zMfHkAx_wNxI6PR0XHj9aqM49z37Zwh4GgQ9EJ_v9RZq7SuKm/toggleConfig.js
zzz
thx will give it a try
dr|z3d
the issue was that you can't target elements in <head> with document.getElementById, iirc you need to use document.head.querySelector
zzz
that change doesn't work in prometheus
zzz
oh wait I need to change some things, stand by
dr|z3d
you need to modify these functions to point at the css:
dr|z3d
function expand() {
dr|z3d
clean();
dr|z3d
const x = document.createElement("link");
dr|z3d
x.type = "text/css";
dr|z3d
x.rel = "stylesheet";
dr|z3d
x.href = "/outproxy/resources/expand.css";
dr|z3d
x.setAttribute("id", "expandConfig");
dr|z3d
document.head.appendChild(x);
dr|z3d
showConfig();
dr|z3d
}
dr|z3d
function collapse() {
dr|z3d
clean();
dr|z3d
const c = document.createElement("link");
dr|z3d
c.type = "text/css";
dr|z3d
c.rel = "stylesheet";
dr|z3d
c.href = "/outproxy/resources/collapse.css";
dr|z3d
c.setAttribute("id", "collapseConfig");
dr|z3d
document.head.appendChild(c);
dr|z3d
hideConfig();
dr|z3d
}
zzz
i get it, I just tried it in promethues first, not socks
zzz
have to merge in my prometheus changes
zzz
stand by
dr|z3d
*** chuckles. ***
dr|z3d
testing js without rebuilding the plugins is mostly just a question of hosting the console via nginx and using subs_filter to remap the files you're interested in. then you can edit them in situ.
zzz
works, thanks
dr|z3d
\o/
dr|z3d
example nginx conf for hosting console via nginx: cake.i2p/view/xIJbRnQoqV_aVUYdcfsagTPwNmUIqGPfajBI1Vmdb_7sY0Jt8veo/xIJbRnQoqV.txt
dr|z3d
(with a subs_filter declaration for toggleConfig.js by way of example)
dr|z3d
requires package: libnginx-mod-http-subs-filter