mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-29 16:33:02 +05:00
simplified the code for the dropgalaxy bypass
This commit is contained in:
parent
99b7f0c079
commit
0effc0ffb8
2 changed files with 12 additions and 46 deletions
|
@ -1687,12 +1687,7 @@
|
||||||
|
|
||||||
function clickButton(selector) {
|
function clickButton(selector) {
|
||||||
var button = document.querySelector(selector);
|
var button = document.querySelector(selector);
|
||||||
if (button) {
|
if (button) {button.click();};
|
||||||
button.click();
|
|
||||||
console.log('Button with selector ' + selector + ' clicked!');
|
|
||||||
} else {
|
|
||||||
console.log('Button with selector ' + selector + ' not found!');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1st PAGE - click the hidden button inmediately
|
// 1st PAGE - click the hidden button inmediately
|
||||||
|
@ -1706,30 +1701,18 @@
|
||||||
// 3rd PAGE - Extract the download link as soon as it is available
|
// 3rd PAGE - Extract the download link as soon as it is available
|
||||||
(function($) {
|
(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Check for the presence of the form element at regular intervals
|
// Check for the presence of the form element at regular intervals
|
||||||
var intervalId = setInterval(function() {
|
var intervalId = setInterval(function() {
|
||||||
var $downloadForm = $('#dllink');
|
var $downloadForm = $('#dllink');
|
||||||
|
if ($downloadForm.length > 0) { // Check if the form element is present
|
||||||
// Check if the form element is present
|
var url = $downloadForm.attr('action'); // Extract the URL from the form action attribute
|
||||||
if ($downloadForm.length > 0) {
|
clearInterval(intervalId); // Stop the interval since the URL is found
|
||||||
// Extract the URL from the form action attribute
|
alert('Press OK to go to the download link:\n' + url); // Show download link in a popup
|
||||||
var url = $downloadForm.attr('action');
|
window.location.href = url; // Redirect to the download link
|
||||||
|
|
||||||
// Stop the interval since the URL is found
|
|
||||||
clearInterval(intervalId);
|
|
||||||
|
|
||||||
// Show download link in a popup
|
|
||||||
alert('Press OK to go to the download link:\n' + url);
|
|
||||||
|
|
||||||
// Redirect to the download link
|
|
||||||
window.location.href = url;
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -14,12 +14,7 @@
|
||||||
|
|
||||||
function clickButton(selector) {
|
function clickButton(selector) {
|
||||||
var button = document.querySelector(selector);
|
var button = document.querySelector(selector);
|
||||||
if (button) {
|
if (button) {button.click();};
|
||||||
button.click();
|
|
||||||
console.log('Button with selector ' + selector + ' clicked!');
|
|
||||||
} else {
|
|
||||||
console.log('Button with selector ' + selector + ' not found!');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1st PAGE - click the hidden button inmediately
|
// 1st PAGE - click the hidden button inmediately
|
||||||
|
@ -33,30 +28,18 @@
|
||||||
// 3rd PAGE - Extract the download link as soon as it is available
|
// 3rd PAGE - Extract the download link as soon as it is available
|
||||||
(function($) {
|
(function($) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Check for the presence of the form element at regular intervals
|
// Check for the presence of the form element at regular intervals
|
||||||
var intervalId = setInterval(function() {
|
var intervalId = setInterval(function() {
|
||||||
var $downloadForm = $('#dllink');
|
var $downloadForm = $('#dllink');
|
||||||
|
if ($downloadForm.length > 0) { // Check if the form element is present
|
||||||
// Check if the form element is present
|
var url = $downloadForm.attr('action'); // Extract the URL from the form action attribute
|
||||||
if ($downloadForm.length > 0) {
|
clearInterval(intervalId); // Stop the interval since the URL is found
|
||||||
// Extract the URL from the form action attribute
|
alert('Press OK to go to the download link:\n' + url); // Show download link in a popup
|
||||||
var url = $downloadForm.attr('action');
|
window.location.href = url; // Redirect to the download link
|
||||||
|
|
||||||
// Stop the interval since the URL is found
|
|
||||||
clearInterval(intervalId);
|
|
||||||
|
|
||||||
// Show download link in a popup
|
|
||||||
alert('Press OK to go to the download link:\n' + url);
|
|
||||||
|
|
||||||
// Redirect to the download link
|
|
||||||
window.location.href = url;
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue