IRCaBot 2.1.0
GPLv3 © acetone, 2021-2022
#saltr
/2025/04/09
~dr|z3d
@RN
@RN_
@StormyCloud
@T3s|4
@T3s|4_
@eyedeekay
@orignal
@postman
@zzz
%Liorar
%cumlord
+FreefallHeavens
+Xeha
+ardu
+bak83_
+hk
+mareki2p
+onon_
+poriori
+qend-irc2p
+r00tobo_BNC
+uop23ip
+weko
AHOH2
Arch
BubbRubb
Danny
DeltaOreo
HowardPlayzOfAdmin1
Irc2PGuest25837
Irc2PGuest50191
Irc2PGuest8686
Irc2PGuest87322
Irc2PGuest99002
Leopold
Meow
Onn4l7h
Onn4|7h
SigSegv
acetone_
boonst
carried6590
maylay
pisslord
shiver_
simprelay
solidx66
thetia
u5657
usr002
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 so you're seeing errors in the browser console when you toggle the configs?
zzz it's all working, just dup links in the DOM
dr|z3d yup, ok, see it.
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 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();
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 (with a subs_filter declaration for toggleConfig.js by way of example)
dr|z3d requires package: libnginx-mod-http-subs-filter