Guide_3DS/assets/js/selecting.js
lifehackerhansol 20d6efa175 Remove Soundhax derivatives
This is unnecessary and causes confusion for both the end user and the
helper, when one can just do another exploit if in such a situation
where these are necessary.
2023-03-28 21:35:56 -07:00

98 lines
4.4 KiB
JavaScript

function sslothable(s, n) {
if
(
(s == 4 && n == 37) ||
(s == 5 && n == 38) ||
(s == 6 && n == 39) ||
(s == 7 && n == 40) ||
(s == 8 && n == 41) ||
(s == 9 && n == 42) ||
(s == 10 && n == 43) ||
(s == 11 && n == 43) ||
(s == 12 && n == 44) ||
(s == 13 && n == 45)
) {
return true;
}
else {
return false;
}
}
function sslothablekor(s, n) {
if
(
(s == 4 && n == 33) ||
(s == 5 && n == 34) ||
(s == 6 && n == 35) ||
(s == 7 && n == 35) ||
(s == 8 && n == 35) ||
(s == 9 && n == 36) ||
(s == 10 && n == 37) ||
(s == 12 && n == 38) ||
(s == 13 && n == 39)
) {
return true;
}
else {
return false;
}
}
function redirect() {
var major = document.getElementById("major");
var minor = document.getElementById("minor");
var nver = document.getElementById("nver");
var region = document.getElementById("region");
document.getElementById("result_invalidVersion").style.display = "none";
document.getElementById("result_methodUnavailable").style.display = "none";
if (major.value == 0) {
document.getElementById("result_invalidVersion").style.display = "block";
}
else { //only do things if major isnt 0, which would be invalid
if (["U", "E", "J"].includes(region.value)) { // USA/EUR/JPN things
if (major.value < 11 || minor.value < 4) { //soundhax works on all consoles for 1.0-11.3
window.location.href = "installing-boot9strap-(soundhax)";
}
else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
window.location.href = "installing-boot9strap-(ssloth-browser)";
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
}
}
else if (region.value === "K") { //korea stuff
if (major.value < 11 || minor.value < 4) { //soundhax works on all consoles for 1.0-11.3
window.location.href = "installing-boot9strap-(soundhax)";
}
else if (sslothablekor(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
window.location.href = "installing-boot9strap-(ssloth-browser)";
}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
}
}
else if (region.value === "T") { //taiwan stuff
if (major.value < 11 || minor.value < 4) { //soundhax works on all consoles for 1.0-11.3
window.location.href = "installing-boot9strap-(soundhax)";
}
//else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
// window.location.href = "installing-boot9strap-(ssloth-browser)"; //OTHERAPP BROKEN FOR TWN/CHN 11.4+ ATM
//}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T
window.location.href = "seedminer";
}
}
else if (region.value === "C") { //chn stuff
if (major.value < 11 || minor.value < 4) { //soundhax works on all consoles for 1.0-11.3
window.location.href = "installing-boot9strap-(soundhax)";
}
//else if (sslothable(minor.value, nver.value)) { //check for versions that are not cartupdated, cartupdated consoles cannot access the browser, see troubleshooting for solution
// window.location.href = "installing-boot9strap-(ssloth-browser)"; //OTHERAPP BROKEN FOR TWN/CHN 11.4+ ATM
//}
else { //seedminer does still work for the latest version on E/U/J/K/T/C, but can only be chained on E/U/J/K/T, so CHN cannot be modded atm without additional hardware
document.getElementById("result_methodUnavailable").style.display = "block";
}
}
}
}