mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-03-02 21:39:38 +05:00
fix teknoasian glitching
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/239
This commit is contained in:
parent
386fd0505b
commit
e5763096a6
4 changed files with 49 additions and 23 deletions
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 93.7.10
|
||||
// @version 93.7.11
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 93.7.10
|
||||
// @version 93.7.11
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -2459,8 +2459,30 @@
|
|||
// megalink.pro - https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks/discussions/235270 - https://megalink.pro/pD6wK (nsfw)
|
||||
/megalink.pro\/[a-zA-Z0-9]+$/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {clickIfNotDisabled('a.btn:nth-child(1)')}, 3000)}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
// pahe.ink
|
||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
|
||||
function clickNonStopIfVisible(selector, interval) {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector(selector);
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {button.click();}
|
||||
}, interval);
|
||||
}
|
||||
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector('.myButton');
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {
|
||||
button.click();
|
||||
if (button.classList.contains('postnext')) {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
|
||||
if (!document.querySelector('.form-group')){
|
||||
clickIfExists('a.btn-primary.btn-xs');
|
||||
|
@ -2857,15 +2879,6 @@
|
|||
/freemodsapp.in/.test(url) ? afterDOMLoaded(function() {clickIfExists('#btn6')}) : null;
|
||||
/pandaznetwork.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null;
|
||||
|
||||
// pahe.ink
|
||||
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector('.myButton');
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {button.click();}
|
||||
}, 500);
|
||||
}) : null;
|
||||
|
||||
//suncy.net (upfiles.com) (seen used in fiuxy2.co)
|
||||
/sunci.net/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('button#link-button.btn-primary:not(.btn-download)')}) : null;
|
||||
|
||||
|
|
|
@ -864,8 +864,30 @@
|
|||
// megalink.pro - https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks/discussions/235270 - https://megalink.pro/pD6wK (nsfw)
|
||||
/megalink.pro\/[a-zA-Z0-9]+$/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {clickIfNotDisabled('a.btn:nth-child(1)')}, 3000)}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
// pahe.ink
|
||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
|
||||
function clickNonStopIfVisible(selector, interval) {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector(selector);
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {button.click();}
|
||||
}, interval);
|
||||
}
|
||||
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector('.myButton');
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {
|
||||
button.click();
|
||||
if (button.classList.contains('postnext')) {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
|
||||
if (!document.querySelector('.form-group')){
|
||||
clickIfExists('a.btn-primary.btn-xs');
|
||||
|
@ -1262,15 +1284,6 @@
|
|||
/freemodsapp.in/.test(url) ? afterDOMLoaded(function() {clickIfExists('#btn6')}) : null;
|
||||
/pandaznetwork.com/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null;
|
||||
|
||||
// pahe.ink
|
||||
/teknoasian.com/.test(url) ? afterDOMLoaded(function() {
|
||||
let intervalId = setInterval(() => {
|
||||
let button = document.querySelector('.myButton');
|
||||
let buttonIsVisible = button && button.offsetParent !== null;
|
||||
if (buttonIsVisible) {button.click();}
|
||||
}, 500);
|
||||
}) : null;
|
||||
|
||||
//suncy.net (upfiles.com) (seen used in fiuxy2.co)
|
||||
/sunci.net/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('button#link-button.btn-primary:not(.btn-download)')}) : null;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
// @namespace Violentmonkey Scripts
|
||||
// @run-at document-start
|
||||
// @author Bloggerpemula
|
||||
// @version 93.7.10
|
||||
// @version 93.7.11
|
||||
// @match *://*/*
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
|
|
Loading…
Reference in a new issue