mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-02-06 01:44:10 +05:00
Compare commits
No commits in common. "bfd8e1b2f3b8208ba352ef87d713831dfbcf82f3" and "78e9cb9acb17da928e13b1afc46d62d64e20094d" have entirely different histories.
bfd8e1b2f3
...
78e9cb9acb
7 changed files with 119 additions and 177 deletions
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 93.4.14
|
||||
// @version 93.4.12
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -506,8 +506,6 @@
|
|||
// @match https://fc-lc.xyz/*
|
||||
// @match *://*.ukrupdate.com/*
|
||||
// @match *://*.aryx.xyz/*
|
||||
// @match *://linegee.net/*
|
||||
// @match *://teknoasian.com/*
|
||||
// @match https://paster.so/*
|
||||
// @include /^(https?:\/\/)(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
// @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
|
||||
|
@ -620,7 +618,7 @@
|
|||
// @include /tawda.xyz\/tag/
|
||||
// @include /pastebin.com\/raw/
|
||||
// @include /spacetica.com/
|
||||
// @include /linegee.net|intercelestial.com|teknoasian.com/
|
||||
// @include /linegee.net|intercelestial.com/
|
||||
// @include /(loanoffering|djmp3world).in|moonplusnews.com/
|
||||
// @include /4hi.in/
|
||||
// @include /lnk.news/
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// @run-at document-start
|
||||
// @author Amm0ni4
|
||||
// @noframes
|
||||
// @version 93.4.14
|
||||
// @version 93.4.12
|
||||
// @grant GM_setValue
|
||||
// @grant GM_getValue
|
||||
// @grant GM_addStyle
|
||||
|
@ -506,8 +506,6 @@
|
|||
// @match https://fc-lc.xyz/*
|
||||
// @match *://*.ukrupdate.com/*
|
||||
// @match *://*.aryx.xyz/*
|
||||
// @match *://linegee.net/*
|
||||
// @match *://teknoasian.com/*
|
||||
// @match https://paster.so/*
|
||||
// @include /^(https?:\/\/)(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
// @include /(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
|
||||
|
@ -620,7 +618,7 @@
|
|||
// @include /tawda.xyz\/tag/
|
||||
// @include /pastebin.com\/raw/
|
||||
// @include /spacetica.com/
|
||||
// @include /linegee.net|intercelestial.com|teknoasian.com/
|
||||
// @include /linegee.net|intercelestial.com/
|
||||
// @include /(loanoffering|djmp3world).in|moonplusnews.com/
|
||||
// @include /4hi.in/
|
||||
// @include /lnk.news/
|
||||
|
@ -2272,7 +2270,7 @@
|
|||
/megalink.pro\/[a-zA-Z0-9]+$/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {clickIfNotDisabled('a.btn:nth-child(1)')}, 3000)}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/linegee.net|intercelestial.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
|
||||
if (!document.querySelector('.form-group')){
|
||||
clickIfExists('a.btn-primary.btn-xs');
|
||||
|
@ -2281,33 +2279,6 @@
|
|||
/pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null;
|
||||
/pahe.plus/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null;
|
||||
|
||||
/old.pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfExists('a.btn:nth-child(1)')}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/94
|
||||
/pahe.win/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {redirectIfExists('.redirect');}, 6000);}) : null;
|
||||
|
||||
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
|
||||
function checkHCaptchaSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function clickIfHCaptchaSolved(selector) {
|
||||
let intervalId = setInterval(() => {
|
||||
if (checkHCaptchaSolved()) {
|
||||
clearInterval(intervalId);
|
||||
document.querySelector(selector).click();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfHCaptchaSolved('#template-contactform-submit');
|
||||
} ) : null;
|
||||
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
redirectIfExists('#template-contactform-message > a:nth-child(3)');
|
||||
}) : null;
|
||||
|
||||
// https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8884375
|
||||
if (/4hi.in/.test(url)) { afterDOMLoaded(function() {
|
||||
clickIfExists('.btn-warning:not(.btn-captcha)');
|
||||
|
@ -2498,6 +2469,9 @@
|
|||
// uploadrar - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/87
|
||||
/flash.getpczone.com/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#downloadbtn')}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/94
|
||||
/pahe.win/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {redirectIfExists('.redirect');}, 6000);}) : null;
|
||||
|
||||
// zipshort.net - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-9971779
|
||||
/ontechhindi.com/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfExists('#rtg > center:nth-child(2) > button:nth-child(1)');
|
||||
|
@ -2592,6 +2566,28 @@
|
|||
// https://github.com/FastForwardTeam/FastForward/issues/1515
|
||||
/mendationforc.info/.test(url) ? redirect(decodeURIComponent(atob(url.split('&cc=')[1]).match(/"link":"(.*?)"/)[1]) ) : null;
|
||||
|
||||
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
|
||||
function checkHCaptchaSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function clickIfHCaptchaSolved(selector) {
|
||||
let intervalId = setInterval(() => {
|
||||
if (checkHCaptchaSolved()) {
|
||||
clearInterval(intervalId);
|
||||
document.querySelector(selector).click();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfHCaptchaSolved('#template-contactform-submit');
|
||||
} ) : null;
|
||||
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
redirectIfExists('#template-contactform-message > a:nth-child(3)');
|
||||
}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/184
|
||||
/click.convertkit-mail.com/.test(url) ? redirect(atob(url.match(/.*(aHR0.*)/)[1])) : null;
|
||||
|
||||
|
@ -2874,52 +2870,6 @@
|
|||
// ----- ----- -----
|
||||
|
||||
|
||||
// ----- Bypass pahe.ink soractrl ------
|
||||
// source: https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/14#issuecomment-2588262
|
||||
|
||||
(function() {
|
||||
const domainRegex = /linegee.net|teknoasian.com/
|
||||
if (domainRegex.test(window.location.href)) {
|
||||
|
||||
const fakeEvent = {isTrusted: true, originalEvent: {isTrusted: true}};
|
||||
|
||||
// Wait for jQuery to load
|
||||
const waitForJQuery = setInterval(() => {
|
||||
if (typeof jQuery !== "undefined") {
|
||||
clearInterval(waitForJQuery);
|
||||
|
||||
// Override jQuery's `.on` method
|
||||
const originalOn = unsafeWindow.jQuery.fn.on;
|
||||
|
||||
unsafeWindow.jQuery.fn.on = function(eventType, selector, handler, ...args) {
|
||||
// Check if it's a "click" event on #soralink-human-verif-main
|
||||
if (eventType === "click" && (this.is("#soralink-human-verif-main") || this.is(selector === "#generater") || this.is("#showlink"))) {
|
||||
// Call the function immediately if handler is directly passed
|
||||
if (typeof selector === "function") {
|
||||
selector(fakeEvent); // Call the function
|
||||
} else if (typeof handler === "function") {
|
||||
handler(fakeEvent); // Call the handler
|
||||
}
|
||||
}
|
||||
|
||||
// Call the original .on method
|
||||
return originalOn.call(this, eventType, selector, handler, ...args);
|
||||
};
|
||||
|
||||
// Check if the element #soralink-human-verif-main exists
|
||||
if (!document.getElementById("soralink-human-verif-main")) {
|
||||
// This is the second and third step with #generater and #showlink
|
||||
setInterval(() => {
|
||||
unsafeWindow.jQuery("#pleasewaits").hide();
|
||||
unsafeWindow.jQuery("#showlink").show();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
}, 10); // Check every 10ms
|
||||
}
|
||||
})();
|
||||
// ----- -----
|
||||
|
||||
// ----- Bypass paster.so ------
|
||||
(function() {
|
||||
'use strict';
|
||||
|
@ -3002,13 +2952,41 @@
|
|||
if (domainRegex.test(window.location.href)) {
|
||||
|
||||
// ---RELOAD DEAD-END PAGES---
|
||||
if (document.readyState === "complete") {
|
||||
if (window.location.href.includes("/ref.php")) {
|
||||
// Back up the current ref url
|
||||
GM_setValue("profitsflyLocation", window.location.href);
|
||||
} else if (document.readyState === "complete") {
|
||||
onWindowLoad();
|
||||
} else {
|
||||
window.addEventListener('load', onWindowLoad);
|
||||
}
|
||||
|
||||
function onWindowLoad() {
|
||||
// Click the continue button if a backed up url was loaded in the last 5 seconds
|
||||
if (document.body.textContent.includes("You have 2 active sessions.")) {
|
||||
if ((Date.now() - GM_getValue("profitsflyGoBackTime", 0)) < 5000) {
|
||||
for (const button of document.querySelectorAll("button")) {
|
||||
if (button.textContent.trim() === "Continue") {
|
||||
button.click();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Load the backed up url
|
||||
if (GM_getValue("profitsflyLocation")
|
||||
&& !/Less than.+passed between actions.+try again/.test(document.body.textContent)
|
||||
&& !document.body.textContent.includes("Please wait...")) {
|
||||
const lastLocation = GM_getValue("profitsflyLocation");
|
||||
if (lastLocation) {
|
||||
GM_setValue("profitsflyGoBackTime", Date.now());
|
||||
GM_setValue("profitsflyOverrideLocation", lastLocation);
|
||||
window.location.href = lastLocation;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Function to check for messages like "Click any ad & keep it open for 15 seconds to continue" and reload the page if one exists
|
||||
let reloading = false;
|
||||
|
|
12
README.md
12
README.md
|
@ -1,6 +1,6 @@
|
|||
A fork of *Bypass All Shortlinks* (originally by *bloggerpemula*), with some additional bypasses and fixes.
|
||||
Debloated fork of *Bypass All Shortlinks* (originally by *bloggerpemula*), with some additional bypasses and fixes.
|
||||
|
||||
Save time with automation or bypasses for many link shorteners.
|
||||
Automatically bypass many link shorteners.
|
||||
([supported shorteners](https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/src/branch/main/supported_sites.txt)) ([changelog](https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/commits/branch/main/Bypass_All_Shortlinks.user.js))
|
||||
|
||||
## Install
|
||||
|
@ -8,12 +8,6 @@ Save time with automation or bypasses for many link shorteners.
|
|||
|
||||
(you need a userscript manager like [Violentmonkey](https://violentmonkey.github.io/) or [Tampermonkey](https://www.tampermonkey.net/) installed in your web browser)
|
||||
|
||||
## FAQ
|
||||
- **How effective is this?** It depends on each website. Sometimes it can bypass completely, sometimes it only accelerates the timers, other times it can only auto-click the buttons for you after waiting for the timers to run out. People who contribute here need to add new specific code for each website after we find the vulnerabilities.
|
||||
- **Why is this called "debloated" when now it's a bigger script than the original one?** Initially I just wanted to remove the extra ads and tracking that the original script used to have. Then I started to support a lot more websites, so the script is bigger. I guess I could change the name but I'm not sure that's practical at this point so I'm keeping the name for now.
|
||||
- **What are *shortlinks*, where do I need this script if at all?** The type of *shortlinks* or *link shorteners* that we care about here are intermediate pages that users are forced to go through before getting to the page that we really want. They often force you to click ads so that the person posting these links can make a bit of money, 1 or 2 cents, each time somebody clicks them. This is used often in [p1r4cy websites that offer direct downloads](https://fmhy.net/downloadpiracyguide#video-sites).
|
||||
- **How do I use the settings menu this script has?** I would leave all those settings on default, some can break some sites. When I see that one of those is useful for a site, I enable it for that site (even if it doesn't show on the menu). That menu was added by bloggerpemula, the original dev, and I simply left it there, but I don't use it myself.
|
||||
|
||||
## Improvements in this fork
|
||||
- **Added more bypasses and some fixes** through the scripts in the [extra_bypasses](https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/src/branch/main/extra_bypasses) directory.
|
||||
- **No loading the script indiscriminately on every site.** The script will be loaded only for the sites that are supported (the original userscript is loaded in most of the sites you visit, which is not necessary). Also, by default the script won't run on some sites that have optional bypasses made, but are sensitive like YouTube or Google. These can be re-enabled manually in your userscript manager, adding [optional matching rules](https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/src/branch/main/docs/optional_matching_rules.md) in the script _settings_.
|
||||
|
@ -48,10 +42,10 @@ This script contains code I took, or redirects to free services from other devel
|
|||
Thanks to:
|
||||
- [BloggerPemula](https://greasyfork.org/users/810571-bloggerpemula)
|
||||
- [bypass.city](https://bypass.city/) / [2](https://adbypass.org/) used for l1nkv3rt1s3, Admaven and Loot-link.
|
||||
- Contributers to this repository who have submitted pull requests: Anon991299, mouro, trapgod1, CaptainCaffeine, IntNinja.
|
||||
- [StephenP](https://greasyfork.org/users/104167-stephenp) for the filecrypt bypass.
|
||||
- [Rust1667](https://greasyfork.org/users/980489-rust1667) for some bypasses.
|
||||
- [AdamWr](https://github.com/AdamWr) from AdGuard for the mega-enlace and acortalink.me bypasses.
|
||||
- Contributers to this repository who have submitted pull requests: mouro, trapgod1, CaptainCaffeine, Anon991299, IntNinja.
|
||||
- Every user that has reported issues to this repository.
|
||||
|
||||
## Optional extra tools
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
// @include /tawda.xyz\/tag/
|
||||
// @include /pastebin.com\/raw/
|
||||
// @include /spacetica.com/
|
||||
// @include /linegee.net|intercelestial.com|teknoasian.com/
|
||||
// @include /linegee.net|intercelestial.com/
|
||||
// @include /(loanoffering|djmp3world).in|moonplusnews.com/
|
||||
// @include /4hi.in/
|
||||
// @include /lnk.news/
|
||||
|
@ -830,7 +830,7 @@
|
|||
/megalink.pro\/[a-zA-Z0-9]+$/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {clickIfNotDisabled('a.btn:nth-child(1)')}, 3000)}) : null;
|
||||
|
||||
//pahe.ink final step
|
||||
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/linegee.net|intercelestial.com/.test(url) ? preventForcedFocusOnWindow() : null;
|
||||
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
|
||||
if (!document.querySelector('.form-group')){
|
||||
clickIfExists('a.btn-primary.btn-xs');
|
||||
|
@ -839,33 +839,6 @@
|
|||
/pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#invisibleCaptchaShortlink')}) : null;
|
||||
/pahe.plus/.test(url) ? afterDOMLoaded(function() {redirectIfNotDisabled('a.get-link')}) : null;
|
||||
|
||||
/old.pahe.plus/.test(url) ? afterDOMLoaded(function() {clickIfExists('a.btn:nth-child(1)')}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/94
|
||||
/pahe.win/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {redirectIfExists('.redirect');}, 6000);}) : null;
|
||||
|
||||
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
|
||||
function checkHCaptchaSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function clickIfHCaptchaSolved(selector) {
|
||||
let intervalId = setInterval(() => {
|
||||
if (checkHCaptchaSolved()) {
|
||||
clearInterval(intervalId);
|
||||
document.querySelector(selector).click();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfHCaptchaSolved('#template-contactform-submit');
|
||||
} ) : null;
|
||||
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
redirectIfExists('#template-contactform-message > a:nth-child(3)');
|
||||
}) : null;
|
||||
|
||||
// https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-8884375
|
||||
if (/4hi.in/.test(url)) { afterDOMLoaded(function() {
|
||||
clickIfExists('.btn-warning:not(.btn-captcha)');
|
||||
|
@ -1056,6 +1029,9 @@
|
|||
// uploadrar - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/87
|
||||
/flash.getpczone.com/.test(url) ? afterDOMLoaded(function() {clickIfNotDisabled('#downloadbtn')}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/94
|
||||
/pahe.win/.test(url) ? afterWindowLoaded(function() {setTimeout(function() {redirectIfExists('.redirect');}, 6000);}) : null;
|
||||
|
||||
// zipshort.net - https://github.com/uBlockOrigin/uAssets/discussions/17361#discussioncomment-9971779
|
||||
/ontechhindi.com/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfExists('#rtg > center:nth-child(2) > button:nth-child(1)');
|
||||
|
@ -1150,6 +1126,28 @@
|
|||
// https://github.com/FastForwardTeam/FastForward/issues/1515
|
||||
/mendationforc.info/.test(url) ? redirect(decodeURIComponent(atob(url.split('&cc=')[1]).match(/"link":"(.*?)"/)[1]) ) : null;
|
||||
|
||||
// spaste.com use in pahe.ink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/77
|
||||
function checkHCaptchaSolved() {
|
||||
if (document.querySelector('.h-captcha')) {
|
||||
return window.hcaptcha.getResponse().length !== 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function clickIfHCaptchaSolved(selector) {
|
||||
let intervalId = setInterval(() => {
|
||||
if (checkHCaptchaSolved()) {
|
||||
clearInterval(intervalId);
|
||||
document.querySelector(selector).click();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
/www.spaste.com\/site\/checkPasteUrl\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
clickIfHCaptchaSolved('#template-contactform-submit');
|
||||
} ) : null;
|
||||
/www.spaste.com\/p\?c=/.test(url) ? afterDOMLoaded(function() {
|
||||
redirectIfExists('#template-contactform-message > a:nth-child(3)');
|
||||
}) : null;
|
||||
|
||||
// https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/184
|
||||
/click.convertkit-mail.com/.test(url) ? redirect(atob(url.match(/.*(aHR0.*)/)[1])) : null;
|
||||
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
// ==UserScript==
|
||||
// @name pahe.ink soractrl linegee.net
|
||||
// @match *://linegee.net/*
|
||||
// @match *://teknoasian.com/*
|
||||
// @run-at document-start
|
||||
// ==/UserScript==
|
||||
|
||||
// ----- Bypass pahe.ink soractrl ------
|
||||
// source: https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/14#issuecomment-2588262
|
||||
|
||||
(function() {
|
||||
const domainRegex = /linegee.net|teknoasian.com/
|
||||
if (domainRegex.test(window.location.href)) {
|
||||
|
||||
const fakeEvent = {isTrusted: true, originalEvent: {isTrusted: true}};
|
||||
|
||||
// Wait for jQuery to load
|
||||
const waitForJQuery = setInterval(() => {
|
||||
if (typeof jQuery !== "undefined") {
|
||||
clearInterval(waitForJQuery);
|
||||
|
||||
// Override jQuery's `.on` method
|
||||
const originalOn = unsafeWindow.jQuery.fn.on;
|
||||
|
||||
unsafeWindow.jQuery.fn.on = function(eventType, selector, handler, ...args) {
|
||||
// Check if it's a "click" event on #soralink-human-verif-main
|
||||
if (eventType === "click" && (this.is("#soralink-human-verif-main") || this.is(selector === "#generater") || this.is("#showlink"))) {
|
||||
// Call the function immediately if handler is directly passed
|
||||
if (typeof selector === "function") {
|
||||
selector(fakeEvent); // Call the function
|
||||
} else if (typeof handler === "function") {
|
||||
handler(fakeEvent); // Call the handler
|
||||
}
|
||||
}
|
||||
|
||||
// Call the original .on method
|
||||
return originalOn.call(this, eventType, selector, handler, ...args);
|
||||
};
|
||||
|
||||
// Check if the element #soralink-human-verif-main exists
|
||||
if (!document.getElementById("soralink-human-verif-main")) {
|
||||
// This is the second and third step with #generater and #showlink
|
||||
setInterval(() => {
|
||||
unsafeWindow.jQuery("#pleasewaits").hide();
|
||||
unsafeWindow.jQuery("#showlink").show();
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
}, 10); // Check every 10ms
|
||||
}
|
||||
})();
|
||||
// ----- -----
|
|
@ -12,13 +12,41 @@
|
|||
if (domainRegex.test(window.location.href)) {
|
||||
|
||||
// ---RELOAD DEAD-END PAGES---
|
||||
if (document.readyState === "complete") {
|
||||
if (window.location.href.includes("/ref.php")) {
|
||||
// Back up the current ref url
|
||||
GM_setValue("profitsflyLocation", window.location.href);
|
||||
} else if (document.readyState === "complete") {
|
||||
onWindowLoad();
|
||||
} else {
|
||||
window.addEventListener('load', onWindowLoad);
|
||||
}
|
||||
|
||||
function onWindowLoad() {
|
||||
// Click the continue button if a backed up url was loaded in the last 5 seconds
|
||||
if (document.body.textContent.includes("You have 2 active sessions.")) {
|
||||
if ((Date.now() - GM_getValue("profitsflyGoBackTime", 0)) < 5000) {
|
||||
for (const button of document.querySelectorAll("button")) {
|
||||
if (button.textContent.trim() === "Continue") {
|
||||
button.click();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Load the backed up url
|
||||
if (GM_getValue("profitsflyLocation")
|
||||
&& !/Less than.+passed between actions.+try again/.test(document.body.textContent)
|
||||
&& !document.body.textContent.includes("Please wait...")) {
|
||||
const lastLocation = GM_getValue("profitsflyLocation");
|
||||
if (lastLocation) {
|
||||
GM_setValue("profitsflyGoBackTime", Date.now());
|
||||
GM_setValue("profitsflyOverrideLocation", lastLocation);
|
||||
window.location.href = lastLocation;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Function to check for messages like "Click any ad & keep it open for 15 seconds to continue" and reload the page if one exists
|
||||
let reloading = false;
|
||||
|
|
|
@ -487,8 +487,6 @@ https://adbypass.org/bypass?bypass=*
|
|||
https://fc-lc.xyz/*
|
||||
*://*.ukrupdate.com/*
|
||||
*://*.aryx.xyz/*
|
||||
*://linegee.net/*
|
||||
*://teknoasian.com/*
|
||||
https://paster.so/*
|
||||
/^(https?:\/\/)(loot-link.com|loot-links.com|lootlink.org|lootlinks.co|lootdest.(info|org|com)|links-loot.com|linksloot.net)\/s\?.*$/
|
||||
/(mundopolo.net|myfirstdollar.net|adsense.tupaste.top|acorta2.com|web.admoneyclick.net|acortaphd.live|onlypc.net|link.manudatos.com)/
|
||||
|
@ -601,7 +599,7 @@ https://paster.so/*
|
|||
/tawda.xyz\/tag/
|
||||
/pastebin.com\/raw/
|
||||
/spacetica.com/
|
||||
/linegee.net|intercelestial.com|teknoasian.com/
|
||||
/linegee.net|intercelestial.com/
|
||||
/(loanoffering|djmp3world).in|moonplusnews.com/
|
||||
/4hi.in/
|
||||
/lnk.news/
|
||||
|
|
Loading…
Reference in a new issue