mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-03-01 21:09:37 +05:00
fix teknoasian
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/246
This commit is contained in:
parent
f35fd5f04c
commit
d6a99548d6
4 changed files with 55 additions and 31 deletions
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 93.8.6
|
// @version 93.8.7
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Amm0ni4
|
// @author Amm0ni4
|
||||||
// @noframes
|
// @noframes
|
||||||
// @version 93.8.6
|
// @version 93.8.7
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
// @grant GM_addStyle
|
// @grant GM_addStyle
|
||||||
|
@ -2152,26 +2152,38 @@
|
||||||
|
|
||||||
// pahe.ink
|
// pahe.ink
|
||||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||||
|
function isWeirdButton(button) {
|
||||||
|
const suspiciousStyles = ['position: absolute;left: 99999px;'];
|
||||||
|
const suspiciousWords = ['patch'];
|
||||||
|
|
||||||
function clickNonStopIfVisible(selector, interval) {
|
// Check for suspicious styles
|
||||||
let intervalId = setInterval(() => {
|
const style = button.getAttribute('style');
|
||||||
let button = document.querySelector(selector);
|
if (style && suspiciousStyles.some(s => style.includes(s))) {
|
||||||
let buttonIsVisible = button && button.offsetParent !== null;
|
return true;
|
||||||
if (buttonIsVisible) {button.click();}
|
}
|
||||||
}, interval);
|
|
||||||
|
// Check for suspicious words in text content
|
||||||
|
const textContent = button.textContent.toLowerCase();
|
||||||
|
if (suspiciousWords.some(word => textContent.includes(word))) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
/* /teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||||
let intervalId = setInterval(() => {
|
let intervalId = setInterval(() => {
|
||||||
let button = document.querySelector('.myButton');
|
let buttons = document.querySelectorAll('button.verify, button.skipcontent, button.postnext');
|
||||||
let buttonIsVisible = button && button.offsetParent !== null;
|
for (let button of buttons) {
|
||||||
if (buttonIsVisible) {
|
let buttonIsVisible = button && button.offsetParent !== null;
|
||||||
button.click();
|
if (buttonIsVisible && !isWeirdButton(button)) {
|
||||||
if (button.classList.contains('postnext')) {
|
button.click();
|
||||||
clearInterval(intervalId);
|
if (button.classList.contains('postnext')) {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}) : null; */
|
}) : null;
|
||||||
|
|
||||||
//pahe.ink final step
|
//pahe.ink final step
|
||||||
/linegee.net/.test(url) ? afterDOMLoaded(function() {
|
/linegee.net/.test(url) ? afterDOMLoaded(function() {
|
||||||
|
|
|
@ -888,26 +888,38 @@
|
||||||
|
|
||||||
// pahe.ink
|
// pahe.ink
|
||||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||||
|
function isWeirdButton(button) {
|
||||||
|
const suspiciousStyles = ['position: absolute;left: 99999px;'];
|
||||||
|
const suspiciousWords = ['patch'];
|
||||||
|
|
||||||
function clickNonStopIfVisible(selector, interval) {
|
// Check for suspicious styles
|
||||||
let intervalId = setInterval(() => {
|
const style = button.getAttribute('style');
|
||||||
let button = document.querySelector(selector);
|
if (style && suspiciousStyles.some(s => style.includes(s))) {
|
||||||
let buttonIsVisible = button && button.offsetParent !== null;
|
return true;
|
||||||
if (buttonIsVisible) {button.click();}
|
}
|
||||||
}, interval);
|
|
||||||
|
// Check for suspicious words in text content
|
||||||
|
const textContent = button.textContent.toLowerCase();
|
||||||
|
if (suspiciousWords.some(word => textContent.includes(word))) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
/* /teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||||
let intervalId = setInterval(() => {
|
let intervalId = setInterval(() => {
|
||||||
let button = document.querySelector('.myButton');
|
let buttons = document.querySelectorAll('button.verify, button.skipcontent, button.postnext');
|
||||||
let buttonIsVisible = button && button.offsetParent !== null;
|
for (let button of buttons) {
|
||||||
if (buttonIsVisible) {
|
let buttonIsVisible = button && button.offsetParent !== null;
|
||||||
button.click();
|
if (buttonIsVisible && !isWeirdButton(button)) {
|
||||||
if (button.classList.contains('postnext')) {
|
button.click();
|
||||||
clearInterval(intervalId);
|
if (button.classList.contains('postnext')) {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}) : null; */
|
}) : null;
|
||||||
|
|
||||||
//pahe.ink final step
|
//pahe.ink final step
|
||||||
/linegee.net/.test(url) ? afterDOMLoaded(function() {
|
/linegee.net/.test(url) ? afterDOMLoaded(function() {
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
// @namespace Violentmonkey Scripts
|
// @namespace Violentmonkey Scripts
|
||||||
// @run-at document-start
|
// @run-at document-start
|
||||||
// @author Bloggerpemula
|
// @author Bloggerpemula
|
||||||
// @version 93.8.6
|
// @version 93.8.7
|
||||||
// @match *://*/*
|
// @match *://*/*
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// @grant GM_getValue
|
// @grant GM_getValue
|
||||||
|
|
Loading…
Reference in a new issue