improve rinku.me

This commit is contained in:
Amm0ni4 2024-10-06 16:08:28 +02:00
parent 1e908e44c5
commit 80b953d925
3 changed files with 4 additions and 10 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 92.8.11 // @version 92.8.12
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle

View file

@ -4,7 +4,7 @@
// @run-at document-start // @run-at document-start
// @author Amm0ni4 // @author Amm0ni4
// @noframes // @noframes
// @version 92.8.11 // @version 92.8.12
// @grant GM_setValue // @grant GM_setValue
// @grant GM_getValue // @grant GM_getValue
// @grant GM_addStyle // @grant GM_addStyle
@ -2812,10 +2812,7 @@
function checkForMessage() { function checkForMessage() {
const paragraphs = document.getElementsByTagName("p"); const paragraphs = document.getElementsByTagName("p");
for (let p of paragraphs) { for (let p of paragraphs) {
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) { if (/.*Click.+Ad.*To Continue.*/is.test(p.textContent) || (/.*Click.+Ad.*To.+Unlock.+Captcha.*/is.test(p.textContent) && isElementVisibleAndEnabled(p))) {
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 location.reload(); // Reload the page
return; // Exit the function after reloading return; // Exit the function after reloading
} }

View file

@ -25,10 +25,7 @@
function checkForMessage() { function checkForMessage() {
const paragraphs = document.getElementsByTagName("p"); const paragraphs = document.getElementsByTagName("p");
for (let p of paragraphs) { for (let p of paragraphs) {
if (p.textContent.includes("Click Any Ad & Keep It Open For 15 Seconds To Continue")) { if (/.*Click.+Ad.*To Continue.*/is.test(p.textContent) || (/.*Click.+Ad.*To.+Unlock.+Captcha.*/is.test(p.textContent) && isElementVisibleAndEnabled(p))) {
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 location.reload(); // Reload the page
return; // Exit the function after reloading return; // Exit the function after reloading
} }