mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-28 16:03:01 +05:00
fix some rinku cases
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/165
This commit is contained in:
parent
fe5fcc52b3
commit
15768d5910
3 changed files with 10 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 92.8.9
|
||||
// @version 92.8.10
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 92.8.9
|
||||
// @version 92.8.10
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -2812,9 +2812,10 @@
|
|||
function checkForMessage() {
|
||||
const paragraphs = document.getElementsByTagName("p");
|
||||
for (let p of paragraphs) {
|
||||
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue") || p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha")) {
|
||||
console.log("Detected the message. Reloading the page...");
|
||||
//alert("Unbypassable page type. Reloading the page...");
|
||||
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) {
|
||||
location.reload(); // Reload the page
|
||||
return; // Exit the function after reloading
|
||||
} else if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha") && isElementVisibleAndEnabled(p)) {
|
||||
location.reload(); // Reload the page
|
||||
return; // Exit the function after reloading
|
||||
}
|
||||
|
|
|
@ -25,9 +25,10 @@
|
|||
function checkForMessage() {
|
||||
const paragraphs = document.getElementsByTagName("p");
|
||||
for (let p of paragraphs) {
|
||||
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue") || p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha")) {
|
||||
console.log("Detected the message. Reloading the page...");
|
||||
//alert("Unbypassable page type. Reloading the page...");
|
||||
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) {
|
||||
location.reload(); // Reload the page
|
||||
return; // Exit the function after reloading
|
||||
} else if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Unlock Captcha") && isElementVisibleAndEnabled(p)) {
|
||||
location.reload(); // Reload the page
|
||||
return; // Exit the function after reloading
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue