mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-01-31 06:57:29 +05:00
fix tiktokcounter disabling autoclicks
This commit is contained in:
parent
7f03aab14a
commit
2e4d505bfe
5 changed files with 8 additions and 290 deletions
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 91.8.22
|
||||
// @version 91.8.23
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -736,7 +736,7 @@
|
|||
// @include /urls.cx/
|
||||
// @include /sunci.net/
|
||||
// @include /(adclicker.(io|info)|(discoveryultrasecure|yourihollier).com)\/url\/\#/
|
||||
// @include /tiktokcounter.net/
|
||||
// @include /antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/
|
||||
// @include /minimilionario.com\/noticia.php\?token=/
|
||||
// @include /usandoapp.com/
|
||||
// @include /v2links.(com|me)/
|
||||
|
@ -788,7 +788,6 @@
|
|||
// @include /filecrypt.(cc|co)/
|
||||
// @include /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
// @include /mega-enlace.com/
|
||||
// @include /^(https?:\/\/)(.+)?(tiktokcounter.net|tpayr.xyz)(\/.*)/
|
||||
// @include /(work.ink|workink.click)\/.*$/
|
||||
// @resource NOTYF_CSS https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css
|
||||
// @require https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 91.8.22
|
||||
// @version 91.8.23
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -736,7 +736,7 @@
|
|||
// @include /urls.cx/
|
||||
// @include /sunci.net/
|
||||
// @include /(adclicker.(io|info)|(discoveryultrasecure|yourihollier).com)\/url\/\#/
|
||||
// @include /tiktokcounter.net/
|
||||
// @include /antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/
|
||||
// @include /minimilionario.com\/noticia.php\?token=/
|
||||
// @include /usandoapp.com/
|
||||
// @include /v2links.(com|me)/
|
||||
|
@ -788,7 +788,6 @@
|
|||
// @include /filecrypt.(cc|co)/
|
||||
// @include /(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
// @include /mega-enlace.com/
|
||||
// @include /^(https?:\/\/)(.+)?(tiktokcounter.net|tpayr.xyz)(\/.*)/
|
||||
// @include /(work.ink|workink.click)\/.*$/
|
||||
// @resource NOTYF_CSS https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css
|
||||
// @require https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js
|
||||
|
@ -2237,7 +2236,7 @@
|
|||
|
||||
// psa.wf, olamovies.bar, https://ez4short.com/ar02kkolam - (adding here stuff missing from the main script)
|
||||
///tiktokcounter.net/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/tiktokcounter.net/.test(url) ? setInterval(function(){window.wT9882=0;},1000) : null;
|
||||
/antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/.test(url) ? setInterval(function(){window.wT9882=0;},1000) : null;
|
||||
// /tiktokcounter.net/.test(url) ? afterDOMLoaded(function() {wT9982 = 0;}) : null; //Skip the timer
|
||||
// const clickTikTokCounterButtons = () => { let buttonSelector = 'button#cbt.btn.btn-warningbtn.btn-primary'; let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled') && button.innerHTML.includes('Continue')) { clearInterval(intervalId); isHoverDone = true; setTimeout(function() { button.click();}, 500) } }, 500); };
|
||||
// /tiktokcounter.net/.test(url) ? afterDOMLoaded(function() {clickTikTokCounterButtons()}) : null;
|
||||
|
@ -2721,143 +2720,6 @@
|
|||
// ----- ----- -----
|
||||
|
||||
|
||||
//----tiktokcounter auto-skip for firefox only--------
|
||||
(function() {
|
||||
'use strict';
|
||||
if (/tiktokcounter.net|tpayr.xyz/.test(window.location.href)) {
|
||||
//---DEFINE FUNCTIONS---
|
||||
|
||||
function ReadytoClick(selector, sleepTime = 0) {
|
||||
const events = ["mouseover", "mousedown", "mouseup", "click"];
|
||||
const selectors = selector.split(', ');
|
||||
if (selectors.length > 1) {
|
||||
return selectors.forEach(ReadytoClick);
|
||||
}
|
||||
if (sleepTime > 0) {
|
||||
return sleep(sleepTime * 1000).then(function() {
|
||||
ReadytoClick(selector, 0);
|
||||
});
|
||||
}
|
||||
elementReady(selector).then(function(element) {
|
||||
element.removeAttribute('disabled');
|
||||
element.removeAttribute('target');
|
||||
events.forEach(eventName => {
|
||||
const eventObject = new MouseEvent(eventName, {
|
||||
bubbles: true
|
||||
});
|
||||
element.dispatchEvent(eventObject);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function elementReady(selector) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
let element = document.querySelector(selector);
|
||||
if (element) {
|
||||
resolve(element);
|
||||
return;
|
||||
}
|
||||
new MutationObserver(function(_, observer) {
|
||||
element = document.querySelector(selector);
|
||||
if (element) {
|
||||
resolve(element);
|
||||
observer.disconnect();
|
||||
}
|
||||
}).observe(document.documentElement, {
|
||||
childList: true,
|
||||
subtree: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
function preventForcedFocusOnWindow() {
|
||||
window.mouseleave = true;
|
||||
window.onmouseover = true;
|
||||
document.hasFocus = function() {
|
||||
return true;
|
||||
};
|
||||
Object.defineProperty(document, 'webkitVisibilityState', {
|
||||
get() {
|
||||
return 'visible';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(document, 'visibilityState', {
|
||||
get() {
|
||||
return 'visible';
|
||||
}
|
||||
});
|
||||
window.addEventListener('visibilitychange', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
}, true, true);
|
||||
window.addEventListener('focus', onfocus, true);
|
||||
document.addEventListener('visibilitychange', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
}, true, true);
|
||||
Object.defineProperty(document, 'hidden', {
|
||||
get() {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function captchaIsSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
} else if (document.querySelector('.cf-turnstile') || document.querySelector('#captcha-turnstile')) {
|
||||
return window.turnstile.getResponse().length !== 0;
|
||||
} else if (document.querySelector('.g-recaptcha') || document.querySelector('#captchaShortlink') || document.querySelector('#captcha_container') || document.querySelector('#captchaShortlinker')) {
|
||||
return window.grecaptcha.getResponse().length !== 0;
|
||||
}
|
||||
}
|
||||
|
||||
//---EXECUTE
|
||||
|
||||
if (/tiktokcounter.net/.test(window.location.href)) {
|
||||
preventForcedFocusOnWindow();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
//window.addEventListener('load', function() {
|
||||
// Check its not ez4short because it won't work on that one - example https://ez4short.com/ar02kkolam
|
||||
if (!(document.querySelectorAll('a[href*="ez4short.com"]').length > 0)) {
|
||||
|
||||
if (/tiktokcounter.net|tpayr.xyz/.test(window.location.href)) {
|
||||
|
||||
// Skip timer
|
||||
setInterval(function(){window.wT9882=0;},1000);
|
||||
|
||||
// Auto click buttons
|
||||
if (navigator.userAgent.indexOf("Firefox") != -1) {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
let ctrsh = setInterval(() => {
|
||||
if (captchaIsSolved()) {
|
||||
clearInterval(ctrsh);
|
||||
ReadytoClick('#cbt', 1);
|
||||
}
|
||||
}, 1 * 1000);
|
||||
} else {
|
||||
let profitsfly = setInterval(() => {
|
||||
if (document.querySelector('#cbt').innerText == 'Continue') {
|
||||
clearInterval(profitsfly);
|
||||
ReadytoClick('#cbt', 2);
|
||||
}
|
||||
}, 2 * 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
})();
|
||||
//--------------------------------
|
||||
|
||||
// ----- Bypass work.ink ---- original script by lem6ns: https://greasyfork.org/en/scripts/463481-work-ink-bypasser
|
||||
(function() {
|
||||
'use strict';
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
// @include /urls.cx/
|
||||
// @include /sunci.net/
|
||||
// @include /(adclicker.(io|info)|(discoveryultrasecure|yourihollier).com)\/url\/\#/
|
||||
// @include /tiktokcounter.net/
|
||||
// @include /antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/
|
||||
// @include /minimilionario.com\/noticia.php\?token=/
|
||||
// @include /usandoapp.com/
|
||||
// @include /v2links.(com|me)/
|
||||
|
@ -516,7 +516,7 @@
|
|||
|
||||
// psa.wf, olamovies.bar, https://ez4short.com/ar02kkolam - (adding here stuff missing from the main script)
|
||||
///tiktokcounter.net/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/tiktokcounter.net/.test(url) ? setInterval(function(){window.wT9882=0;},1000) : null;
|
||||
/antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/.test(url) ? setInterval(function(){window.wT9882=0;},1000) : null;
|
||||
// /tiktokcounter.net/.test(url) ? afterDOMLoaded(function() {wT9982 = 0;}) : null; //Skip the timer
|
||||
// const clickTikTokCounterButtons = () => { let buttonSelector = 'button#cbt.btn.btn-warningbtn.btn-primary'; let intervalId = setInterval(() => { let button = document.querySelector(buttonSelector); if (!button.hasAttribute('disabled') && button.innerHTML.includes('Continue')) { clearInterval(intervalId); isHoverDone = true; setTimeout(function() { button.click();}, 500) } }, 500); };
|
||||
// /tiktokcounter.net/.test(url) ? afterDOMLoaded(function() {clickTikTokCounterButtons()}) : null;
|
||||
|
|
|
@ -1,142 +0,0 @@
|
|||
// ==UserScript==
|
||||
// @name tiktokcounter firefox auto-skip
|
||||
// @include /^(https?:\/\/)(.+)?(tiktokcounter.net|tpayr.xyz)(\/.*)/
|
||||
// @run-at document-start
|
||||
// ==/UserScript==
|
||||
|
||||
//----tiktokcounter auto-skip for firefox only--------
|
||||
(function() {
|
||||
'use strict';
|
||||
if (/tiktokcounter.net|tpayr.xyz/.test(window.location.href)) {
|
||||
//---DEFINE FUNCTIONS---
|
||||
|
||||
function ReadytoClick(selector, sleepTime = 0) {
|
||||
const events = ["mouseover", "mousedown", "mouseup", "click"];
|
||||
const selectors = selector.split(', ');
|
||||
if (selectors.length > 1) {
|
||||
return selectors.forEach(ReadytoClick);
|
||||
}
|
||||
if (sleepTime > 0) {
|
||||
return sleep(sleepTime * 1000).then(function() {
|
||||
ReadytoClick(selector, 0);
|
||||
});
|
||||
}
|
||||
elementReady(selector).then(function(element) {
|
||||
element.removeAttribute('disabled');
|
||||
element.removeAttribute('target');
|
||||
events.forEach(eventName => {
|
||||
const eventObject = new MouseEvent(eventName, {
|
||||
bubbles: true
|
||||
});
|
||||
element.dispatchEvent(eventObject);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function elementReady(selector) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
let element = document.querySelector(selector);
|
||||
if (element) {
|
||||
resolve(element);
|
||||
return;
|
||||
}
|
||||
new MutationObserver(function(_, observer) {
|
||||
element = document.querySelector(selector);
|
||||
if (element) {
|
||||
resolve(element);
|
||||
observer.disconnect();
|
||||
}
|
||||
}).observe(document.documentElement, {
|
||||
childList: true,
|
||||
subtree: true
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
function preventForcedFocusOnWindow() {
|
||||
window.mouseleave = true;
|
||||
window.onmouseover = true;
|
||||
document.hasFocus = function() {
|
||||
return true;
|
||||
};
|
||||
Object.defineProperty(document, 'webkitVisibilityState', {
|
||||
get() {
|
||||
return 'visible';
|
||||
}
|
||||
});
|
||||
Object.defineProperty(document, 'visibilityState', {
|
||||
get() {
|
||||
return 'visible';
|
||||
}
|
||||
});
|
||||
window.addEventListener('visibilitychange', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
}, true, true);
|
||||
window.addEventListener('focus', onfocus, true);
|
||||
document.addEventListener('visibilitychange', function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
}, true, true);
|
||||
Object.defineProperty(document, 'hidden', {
|
||||
get() {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function captchaIsSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
} else if (document.querySelector('.cf-turnstile') || document.querySelector('#captcha-turnstile')) {
|
||||
return window.turnstile.getResponse().length !== 0;
|
||||
} else if (document.querySelector('.g-recaptcha') || document.querySelector('#captchaShortlink') || document.querySelector('#captcha_container') || document.querySelector('#captchaShortlinker')) {
|
||||
return window.grecaptcha.getResponse().length !== 0;
|
||||
}
|
||||
}
|
||||
|
||||
//---EXECUTE
|
||||
|
||||
if (/tiktokcounter.net/.test(window.location.href)) {
|
||||
preventForcedFocusOnWindow();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
//window.addEventListener('load', function() {
|
||||
// Check its not ez4short because it won't work on that one - example https://ez4short.com/ar02kkolam
|
||||
if (!(document.querySelectorAll('a[href*="ez4short.com"]').length > 0)) {
|
||||
|
||||
if (/tiktokcounter.net|tpayr.xyz/.test(window.location.href)) {
|
||||
|
||||
// Skip timer
|
||||
setInterval(function(){window.wT9882=0;},1000);
|
||||
|
||||
// Auto click buttons
|
||||
if (navigator.userAgent.indexOf("Firefox") != -1) {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
let ctrsh = setInterval(() => {
|
||||
if (captchaIsSolved()) {
|
||||
clearInterval(ctrsh);
|
||||
ReadytoClick('#cbt', 1);
|
||||
}
|
||||
}, 1 * 1000);
|
||||
} else {
|
||||
let profitsfly = setInterval(() => {
|
||||
if (document.querySelector('#cbt').innerText == 'Continue') {
|
||||
clearInterval(profitsfly);
|
||||
ReadytoClick('#cbt', 2);
|
||||
}
|
||||
}, 2 * 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
})();
|
||||
//--------------------------------
|
|
@ -715,7 +715,7 @@ r1.foxylinks.site
|
|||
/urls.cx/
|
||||
/sunci.net/
|
||||
/(adclicker.(io|info)|(discoveryultrasecure|yourihollier).com)\/url\/\#/
|
||||
/tiktokcounter.net/
|
||||
/antonimos.de|tiktokcounter.net|tiktokrealtime.com|tpayr.xyz|quesignifi.ca/
|
||||
/minimilionario.com\/noticia.php\?token=/
|
||||
/usandoapp.com/
|
||||
/v2links.(com|me)/
|
||||
|
@ -767,5 +767,4 @@ r1.foxylinks.site
|
|||
/filecrypt.(cc|co)/
|
||||
/(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
/mega-enlace.com/
|
||||
/^(https?:\/\/)(.+)?(tiktokcounter.net|tpayr.xyz)(\/.*)/
|
||||
/(work.ink|workink.click)\/.*$/
|
||||
|
|
Loading…
Reference in a new issue