add missing auto-click to mega-enlace

This commit is contained in:
Amm0ni4 2024-04-02 17:19:34 +02:00
parent 992b72f0fe
commit f0e942092c
3 changed files with 24 additions and 10 deletions

View file

@ -3,7 +3,7 @@
// @namespace Violentmonkey Scripts // @namespace Violentmonkey Scripts
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @version 91.7 // @version 91.7.1
// @noframes // @noframes
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue

View file

@ -3,7 +3,7 @@
// @namespace Violentmonkey Scripts // @namespace Violentmonkey Scripts
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @version 91.7 // @version 91.7.1
// @noframes // @noframes
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
@ -2435,11 +2435,18 @@
if (n[1] = n[1].replace("window.location.href", "var nulled"), n[1] = n[1].replace("window.open(f", "location.assign(f"), n[1] = n[1].replace(/(parseInt\(c\.split\("-"\)\[0\]\)<= 0).*?(\)\{)/, "$1$2"), o && t && i && r && c) try { if (n[1] = n[1].replace("window.location.href", "var nulled"), n[1] = n[1].replace("window.open(f", "location.assign(f"), n[1] = n[1].replace(/(parseInt\(c\.split\("-"\)\[0\]\)<= 0).*?(\)\{)/, "$1$2"), o && t && i && r && c) try {
"loading" === document.readyState ? window.addEventListener("load", (() => { "loading" === document.readyState ? window.addEventListener("load", (() => {
//Check if there is already access permission before launching the POST requests for the bypass //Check if there is already access permission before launching the POST requests for the bypass
let button = document.getElementById('contador'); let button = document.querySelector('input[type="button"][id="contador"][value="IR AL ENLACE"]');
let accessGranted = button.value.trim() === "IR AL ENLACE"; if (!button){
if (!accessGranted){
e(c); //Launch the POST requests e(c); //Launch the POST requests
} else if (accessGranted) { // Check periodically if access is granted to click the button
let intervalId = setInterval(() => {
let button = document.querySelector('input[type="button"][id="contador"][value="Ir al enlace"]');
if (button) {
button.click();
clearInterval(intervalId);
}
}, 1000);
} else if (button) {
button.click(); button.click();
} }
}), { }), {

View file

@ -37,11 +37,18 @@
if (n[1] = n[1].replace("window.location.href", "var nulled"), n[1] = n[1].replace("window.open(f", "location.assign(f"), n[1] = n[1].replace(/(parseInt\(c\.split\("-"\)\[0\]\)<= 0).*?(\)\{)/, "$1$2"), o && t && i && r && c) try { if (n[1] = n[1].replace("window.location.href", "var nulled"), n[1] = n[1].replace("window.open(f", "location.assign(f"), n[1] = n[1].replace(/(parseInt\(c\.split\("-"\)\[0\]\)<= 0).*?(\)\{)/, "$1$2"), o && t && i && r && c) try {
"loading" === document.readyState ? window.addEventListener("load", (() => { "loading" === document.readyState ? window.addEventListener("load", (() => {
//Check if there is already access permission before launching the POST requests for the bypass //Check if there is already access permission before launching the POST requests for the bypass
let button = document.getElementById('contador'); let button = document.querySelector('input[type="button"][id="contador"][value="IR AL ENLACE"]');
let accessGranted = button.value.trim() === "IR AL ENLACE"; if (!button){
if (!accessGranted){
e(c); //Launch the POST requests e(c); //Launch the POST requests
} else if (accessGranted) { // Check periodically if access is granted to click the button
let intervalId = setInterval(() => {
let button = document.querySelector('input[type="button"][id="contador"][value="Ir al enlace"]');
if (button) {
button.click();
clearInterval(intervalId);
}
}, 1000);
} else if (button) {
button.click(); button.click();
} }
}), { }), {