Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f75553e0a | ||
|
|
38e74dc1d9 |
@@ -1,5 +1,9 @@
|
||||
## WVGuesserExtension
|
||||
|
||||
Looking for new version?
|
||||
|
||||
See here: https://github.com/FoxRefire/wvg/tree/next
|
||||
|
||||
### Instalation
|
||||
|
||||
1. Setup [Guesser API](https://github.com/nilaoda/WVCore.Server) ([Guide](https://github.com/nilaoda/Blog/discussions/58#discussioncomment-9052557))
|
||||
|
||||
@@ -12,11 +12,7 @@
|
||||
<div id="home">
|
||||
<form id="wvForm">
|
||||
<label for="guessr">Guessr API</label>
|
||||
<input type="text" id="guessr" value="https://proposed-marketa-foxrefire.koyeb.app" disabled/>
|
||||
<input type="radio" value="public" name="apiType" checked>Public
|
||||
<input type="radio" value="local" name="apiType">Local
|
||||
<input type="radio" value="custom" name="apiType">Custom
|
||||
<br>
|
||||
<input type="text" id="guessr" value="http://127.0.0.1:18888" /><br>
|
||||
|
||||
<label for="pssh">PSSH</label>
|
||||
<input type="text" id="pssh" disabled/>
|
||||
|
||||
16
popup.js
16
popup.js
@@ -14,22 +14,6 @@ function selectRequest(){
|
||||
document.getElementById('selectRequest').style.display='block';
|
||||
}
|
||||
|
||||
document.querySelectorAll('input[name="apiType"]').forEach(radio => {
|
||||
radio.addEventListener('change', handleRadioChange);
|
||||
});
|
||||
function handleRadioChange(event) {
|
||||
if (event.target.value=="public"){
|
||||
document.getElementById('guessr').disabled="true";
|
||||
document.getElementById('guessr').value="https://proposed-marketa-foxrefire.koyeb.app";
|
||||
} else if (event.target.value=="local"){
|
||||
document.getElementById('guessr').disabled="true";
|
||||
document.getElementById('guessr').value="http://127.0.0.1:18888";
|
||||
} else if (event.target.value=="custom"){
|
||||
document.getElementById('guessr').disabled="false";
|
||||
document.getElementById('guessr').value="";
|
||||
}
|
||||
}
|
||||
|
||||
async function guess(){
|
||||
let WVScheme;
|
||||
switch (document.getElementById('scheme').value) {
|
||||
|
||||
Reference in New Issue
Block a user