update cSetup

This commit is contained in:
zefie
2025-07-07 08:45:38 -04:00
parent 1faffc8d5a
commit 7e7c5b142e
8 changed files with 54 additions and 36 deletions

View File

@@ -1176,7 +1176,7 @@ function handleProxy(socket, request_type, request_headers, res, data) {
headers["wtv-http-proxy"] = true;
headers["wtv-trusted"] = false;
if (res.headers['Content-Type'].substr(0, 4) == "text") {
if (typeof res.headers['Content-Type'] === 'string' && res.headers['Content-Type'].startsWith("text")) {
if (request_type != "http" && request_type != "https") {
// replace http and https links on non http/https protocol (for proto:// for example)
var data_t = data.toString().replaceAll("http://", request_type + "://").replaceAll("https://", request_type + "://");

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

View File

@@ -38,23 +38,33 @@ function load() {
Content-Type: text/html`
data = `<html><head><display nooptions noscroll allowoffline notvaudio switchtowebmode nosend>
<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script>
<body hspace=0 vspace=0 fontsize=medium onload=uS() background=/ROMCache/bgpattern.gif bgcolor=003366 text=c6c6c6 link=0080ff vlink=0080ff yspeed=1 transition=slidedown>
<script src=htv-cSetup.js></script>
</head><form name=t><input type=hidden name=h value=&pname;></form>
<script>head('Connect Setup v2.6');
window.onload=uS;
</script><form name=c action=client:ConfirmConnectSetup>
<title>Connect Setup v3.0</title>
</head><table cellspacing=0 cellpadding=0 bgcolor=004488 gradcolor=003366 gradangle=45 gradtransparency=100><tr><td>
<table cellspacing=0 cellpadding=0><tr>
<td background=/ROMCache/cSetupShadowLogo.gif width=104 height=80 valign=top align=left><spacer type=block width=11 height=11><br>
<spacer type=block width=10 height=1>
</td><td width=456 height=80 valign=top>
<img src=/ROMCache/cSetup.gif width=456 height=50><br>
<img src=/ROMCache/Shadow_Horizontal.gif width=456 height=6>
</td>
</tr></table>
<table width=100% cellspacing=0 cellpadding=0><tr>
<td valign=middle><spacer height=16 type=vertical><font size=+2 color=f0f0f0 effect=emboss><b>&nbsp;Connect Setup v3.0</b></font></td>
</font></form></td>
</tr></table>
<spacer height=2 type=vertical><hr><spacer height=15 type=vertical>
<form name=c action=client:ConfirmConnectSetup>
<table width=100% cellspacing=1 cellpadding=0>
<tr><td height=18>
<tr><td colspan=3>&nbsp;Server:</td>
<td><select width=420 name=p onchange=uS() selected>
<option value=htv>MattMan's (HTV) MiniSrv</option>
<option value=htvb>MattMan's (HTV) MiniSrv Backup</option>
<option value=mm69>MattMan's Revival Srv.</option>
<option value=zef>zefie's MiniSrv</option>
<option value=jar>WebTV Redialed</option>
<option value=zlan>zefie LAN (.8)</option>
<option value=zlan2>zefie LAN (.95)</option>
<option value=red>WebTV Redialed</option>
<option value=local>Your Local Machine</option>
<option value=other>Other</option>
</select></table>
<table width=100% cellspacing=1 cellpadding=0>
@@ -62,17 +72,21 @@ window.onload=uS;
<tr><td><input name=serviceType type=hidden value=custom>
&nbsp;Address:&nbsp;&nbsp;&nbsp;<input size=21 asciionly name=machine value="" bgcolor=191919 text=c6c6c6 cursor=cc9933>
&nbsp;&nbsp;&nbsp;Port:<input size=5 asciionly numbers name=port value="" bgcolor=191919 text=c6c6c6 cursor=cc9933>
</table>
<spacer type=block height=42><hr><br>
</table><hr><br>
<table cellspacing=1 cellpadding=0>
<tr><td height=1>
<tr><td colspan=2>&nbsp;Info:<br><br><td>
<tr><td width=20><td width=300 align=left valign=top>
<form name=i><font size=-1><script>ta(6,46,'msg',0,'','nohighlight noselect',1)</script></font></form>
<form name=i><font size=-1 color=c6c6c6><textarea name=msg rows=6 size=50 border=0 nobackground nohighlight noselect usestyle>The public HackTV minisrv,
all are welcome to connect and enjoy the wonders of WebTV. Custom experience, but simulates the WebTV network after its MSN TV rebrand.</textarea>
</font>
<td><td width=100% align=right valign=top>
<font size=-2><input type=hidden name=useEncryption value=true><script>butt('Connect','Connect',170);</script></font>
</form>
<form action=client:gotophonesetup><font size=-2><script>butt( 'Dialing Options', '', 170);</script></font></form>
<font id=connectText color=e7ce4a size=-1 effect=shadow>
<b><input type=submit value=Connect name=Connect width=150 selected></b>
<br><br><font color=c6c6c6><input size=14 border=0 nobackground nohighlight noselect name=runByText value="Server run by:" usestyle></font>
<b><input name=runBy size=14 border=0 nobackground nohighlight noselect usestyle value=MattMan69></b>
</font>
</td></tr>
</table>
`;
}

View File

@@ -1,27 +1,30 @@
function uI(ip,prt,dsc,ro){
var d = document;
function uI(ip,prt,dsc,ro,rb){
if(!ro){ro=false}
d.c.machine.value=ip
d.c.port.value=prt
d.i.msg.value=dsc
d.i.runBy.value=rb
d.c.machine.readonly=ro
d.c.port.readonly=ro
}
function uS(){switch(d.c.p[d.c.p.selectedIndex].value){
case "htv":uI("71.244.121.234","1615","This is the public HackTV minisrv, all are welcome to connect and enjoy the wonders of WebTV. Custom experience, including updates to HackTV builds!",true)
break
case "htvb":uI("71.244.121.234","1415","This is the public HackTV minisrv backup, only available when the main HackTV server is down.",true)
break
case "zef": uI("216.126.232.171","1615","zefie's public minisrv, for those who want an experience close to the vanilla minisrv.",true)
break
case "mm69":uI("71.244.121.234","1515","MattMan's megasrv. It's the real deal, not minisrv! May be up from time to time.",true)
break
case "jar":uI("217.160.150.209","1615","WebTV Redialed aims to replicate the look and feel of the original production WebTV service.",true)
break
case "zlan":uI("192.168.11.8","1615","zefie's Desktop via LAN.",false)
break
case "zlan2":uI("192.168.11.95","1615","zefie's public minisrv via LAN.",false)
break
case "other":uI("","1615","Your custom service.",false)
break
}}
function uS(){
switch(d.c.p[d.c.p.selectedIndex].value){
case "htv":uI("71.244.121.234","1615","The public HackTV minisrv, all are welcome to connect and enjoy the wonders of WebTV. Custom experience, but simulates the WebTV network after its MSN TV rebrand.",true, "MattMan69")
break
case "htvb":uI("71.244.121.234","1415","The HackTV minisrv backup server, only available when the main HackTV server is down.",true, "MattMan69")
break
case "zef": uI("204.11.163.156","1615","zefie's public minisrv, for those who want the vanilla minisrv experience. For more info, see https://zef.pw/minisrv.",true, "zefie")
break
case "mm69":uI("71.244.121.234","1515","MattMan's megasrv. It's the real deal, not minisrv! May be up from time to time.",true, "MattMan69")
break
case "red":uI("31.97.129.116","1615","WThe WebTV Redialed minisrv, for those who want an original WebTV experience. Simulates the WebTV Network as it was in 1999.",true, "HIDEN")
break
case "local":uI("127.0.0.1","1615","Connects to a server running on your local machine. Doesn't do anything if a server isn't running.",true, "You")
break
case "other":uI("","1615","Enter a custom service.",false, "???")
break
}
}

View File

@@ -22,7 +22,8 @@ tricks = [
["wtv-tricks:/cSetup", "Connect Setup"],
["wtv-tricks:/benchmark", "Speed Test"],
["wtv-flashrom:/big-willie", "Big Willie"],
["wtv-flashrom:/willie", "Ultra Willie"]
["wtv-flashrom:/willie", "Ultra Willie"],
["wtv-setup:/transfer-account", "Transfer Account"],
]
// add these at the bottom
tricks.push((session_data.getSessionData("registered")) ? ["wtv-tricks:/unregister", "Unregister This Box"] : ["wtv-tricks:/register", "Register This Box"]); // reg/unreg