Compare commits

..

10 commits

Author SHA1 Message Date
Amm0ni4
bfd8e1b2f3 Update README.md 2025-01-16 15:16:17 +00:00
Amm0ni4
c31b8f2e19 Update README.md 2025-01-16 14:48:39 +00:00
Amm0ni4
beda55c525 Update README.md 2025-01-16 14:36:38 +00:00
Amm0ni4
d6af06f602 Update README.md 2025-01-16 14:34:33 +00:00
Amm0ni4
8c2c0317c5 Update README.md 2025-01-16 14:33:22 +00:00
Amm0ni4
78448ebc60 Update README.md 2025-01-16 14:15:38 +00:00
Amm0ni4
769877953f Update README.md 2025-01-16 14:14:31 +00:00
Amm0ni4
ba7ac2b02f Update README.md 2025-01-16 14:10:42 +00:00
Amm0ni4
40aa09da8d fix for profitsfly thanks to Anon991299
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/191
2025-01-16 14:47:07 +01:00
Amm0ni4
2617038c89 partial automation for pahe old links thanks to Anon991299
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/14
2025-01-16 14:39:42 +01:00
7 changed files with 177 additions and 119 deletions

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.12
// @version 93.4.14
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -506,6 +506,8 @@
// @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)/
@ -618,7 +620,7 @@
// @include /tawda.xyz\/tag/
// @include /pastebin.com\/raw/
// @include /spacetica.com/
// @include /linegee.net|intercelestial.com/
// @include /linegee.net|intercelestial.com|teknoasian.com/
// @include /(loanoffering|djmp3world).in|moonplusnews.com/
// @include /4hi.in/
// @include /lnk.news/

View file

@ -4,7 +4,7 @@
// @run-at document-start
// @author Amm0ni4
// @noframes
// @version 93.4.12
// @version 93.4.14
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
@ -506,6 +506,8 @@
// @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)/
@ -618,7 +620,7 @@
// @include /tawda.xyz\/tag/
// @include /pastebin.com\/raw/
// @include /spacetica.com/
// @include /linegee.net|intercelestial.com/
// @include /linegee.net|intercelestial.com|teknoasian.com/
// @include /(loanoffering|djmp3world).in|moonplusnews.com/
// @include /4hi.in/
// @include /lnk.news/
@ -2270,7 +2272,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/.test(url) ? preventForcedFocusOnWindow() : null;
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
if (!document.querySelector('.form-group')){
clickIfExists('a.btn-primary.btn-xs');
@ -2279,6 +2281,33 @@
/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)');
@ -2469,9 +2498,6 @@
// 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)');
@ -2566,28 +2592,6 @@
// 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;
@ -2870,6 +2874,52 @@
// ----- ----- -----
// ----- 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';
@ -2952,41 +3002,13 @@
if (domainRegex.test(window.location.href)) {
// ---RELOAD DEAD-END PAGES---
if (window.location.href.includes("/ref.php")) {
// Back up the current ref url
GM_setValue("profitsflyLocation", window.location.href);
} else if (document.readyState === "complete") {
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;

View file

@ -1,6 +1,6 @@
Debloated fork of *Bypass All Shortlinks* (originally by *bloggerpemula*), with some additional bypasses and fixes.
A fork of *Bypass All Shortlinks* (originally by *bloggerpemula*), with some additional bypasses and fixes.
Automatically bypass many link shorteners.
Save time with automation or bypasses for 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,6 +8,12 @@ Automatically bypass 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_.
@ -42,10 +48,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

View file

@ -111,7 +111,7 @@
// @include /tawda.xyz\/tag/
// @include /pastebin.com\/raw/
// @include /spacetica.com/
// @include /linegee.net|intercelestial.com/
// @include /linegee.net|intercelestial.com|teknoasian.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/.test(url) ? preventForcedFocusOnWindow() : null;
/linegee.net|intercelestial.com|teknoasian.com/.test(url) ? preventForcedFocusOnWindow() : null;
/spacetica.com/.test(url) ? afterDOMLoaded(function() {
if (!document.querySelector('.form-group')){
clickIfExists('a.btn-primary.btn-xs');
@ -839,6 +839,33 @@
/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)');
@ -1029,9 +1056,6 @@
// 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)');
@ -1126,28 +1150,6 @@
// 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;

View file

@ -0,0 +1,52 @@
// ==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
}
})();
// ----- -----

View file

@ -12,41 +12,13 @@
if (domainRegex.test(window.location.href)) {
// ---RELOAD DEAD-END PAGES---
if (window.location.href.includes("/ref.php")) {
// Back up the current ref url
GM_setValue("profitsflyLocation", window.location.href);
} else if (document.readyState === "complete") {
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;

View file

@ -487,6 +487,8 @@ 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)/
@ -599,7 +601,7 @@ https://paster.so/*
/tawda.xyz\/tag/
/pastebin.com\/raw/
/spacetica.com/
/linegee.net|intercelestial.com/
/linegee.net|intercelestial.com|teknoasian.com/
/(loanoffering|djmp3world).in|moonplusnews.com/
/4hi.in/
/lnk.news/