update 4.31.0

This commit is contained in:
MoeFurina
2026-04-17 20:14:15 +08:00
parent c50aeddf5f
commit 843c19f089
15 changed files with 381 additions and 33 deletions
+29
View File
@@ -122,6 +122,35 @@
document.getElementById('result').value = 'Request failed: ' + error.message;
}
}
(function fillFromQuery() {
const params = new URLSearchParams(window.location.search);
if (!params.toString()) return;
const uri = params.get('uri');
const crypto = params.get('crypto');
const dataParam = params.get('data');
if (uri) {
document.getElementById('uri').value = uri;
}
if (crypto) {
const cryptoSelect = document.getElementById('crypto');
if ([...cryptoSelect.options].some((opt) => opt.value === crypto)) {
cryptoSelect.value = crypto;
}
}
if (dataParam) {
const decoded = dataParam;
try {
document.getElementById('data').value = JSON.stringify(
JSON.parse(decoded),
null,
2,
);
} catch (error) {
document.getElementById('data').value = decoded;
}
}
})();
</script>
</body>
</html>