From cc228e1441fc446b53e65d822d64e5cae9656558 Mon Sep 17 00:00:00 2001 From: Amm0ni4 Date: Thu, 13 Feb 2025 01:29:42 +0100 Subject: [PATCH] add missing automation for aylink.co, cpmlink.pro https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/238 --- Bypass_All_Shortlinks.meta.js | 3 ++- Bypass_All_Shortlinks.user.js | 19 ++++++++++++++++++- extra_bypasses/extra_bypasses.user.js | 17 +++++++++++++++++ supported_sites.txt | 1 + ...ched_Bypass_All_Shortlinks_patched.user.js | 2 +- 5 files changed, 39 insertions(+), 3 deletions(-) diff --git a/Bypass_All_Shortlinks.meta.js b/Bypass_All_Shortlinks.meta.js index 9ee168b..8d2f2ea 100644 --- a/Bypass_All_Shortlinks.meta.js +++ b/Bypass_All_Shortlinks.meta.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 93.7.8 +// @version 93.7.9 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -928,6 +928,7 @@ // @include /foodtechnos.in/ // @include /mixrootmod.com/ // @include /zaku.pro/ +// @include /aylink.co|cpmlink.pro/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ // @include /(mega-enlace|acortados).com/ diff --git a/Bypass_All_Shortlinks.user.js b/Bypass_All_Shortlinks.user.js index 00073a3..29f4666 100644 --- a/Bypass_All_Shortlinks.user.js +++ b/Bypass_All_Shortlinks.user.js @@ -4,7 +4,7 @@ // @run-at document-start // @author Amm0ni4 // @noframes -// @version 93.7.8 +// @version 93.7.9 // @grant GM_setValue // @grant GM_getValue // @grant GM_addStyle @@ -928,6 +928,7 @@ // @include /foodtechnos.in/ // @include /mixrootmod.com/ // @include /zaku.pro/ +// @include /aylink.co|cpmlink.pro/ // @include /filecrypt.(cc|co)/ // @include /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ // @include /(mega-enlace|acortados).com/ @@ -2866,6 +2867,22 @@ } }) : null; + // aylink, cpmlink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/238 + function redirectIfOnclickElementHasLink(selector) { + let intervalId = setInterval(() => { + let onclickContent = document.querySelector(selector).getAttribute('onclick'); + if (onclickContent) { + clearInterval(intervalId); + const targetLink = onclickContent.match(/window\.open\("([^"]+)",/)[1]; + window.location.assign(targetLink); + } + }, 1000); + } + /aylink.co|cpmlink.pro/.test(url) ? afterWindowLoaded(function() { + clickIfExistsNonStop('a.btn-go'); + redirectIfOnclickElementHasLink('#main'); + } ) : null; + })(); (function() { diff --git a/extra_bypasses/extra_bypasses.user.js b/extra_bypasses/extra_bypasses.user.js index 04db469..8b16b31 100644 --- a/extra_bypasses/extra_bypasses.user.js +++ b/extra_bypasses/extra_bypasses.user.js @@ -228,6 +228,7 @@ // @include /foodtechnos.in/ // @include /mixrootmod.com/ // @include /zaku.pro/ +// @include /aylink.co|cpmlink.pro/ // @run-at document-start // ==/UserScript== @@ -1335,6 +1336,22 @@ } }) : null; + // aylink, cpmlink - https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/238 + function redirectIfOnclickElementHasLink(selector) { + let intervalId = setInterval(() => { + let onclickContent = document.querySelector(selector).getAttribute('onclick'); + if (onclickContent) { + clearInterval(intervalId); + const targetLink = onclickContent.match(/window\.open\("([^"]+)",/)[1]; + window.location.assign(targetLink); + } + }, 1000); + } + /aylink.co|cpmlink.pro/.test(url) ? afterWindowLoaded(function() { + clickIfExistsNonStop('a.btn-go'); + redirectIfOnclickElementHasLink('#main'); + } ) : null; + })(); (function() { diff --git a/supported_sites.txt b/supported_sites.txt index e207a4d..4db2b48 100644 --- a/supported_sites.txt +++ b/supported_sites.txt @@ -909,6 +909,7 @@ https://paster.so/* /foodtechnos.in/ /mixrootmod.com/ /zaku.pro/ +/aylink.co|cpmlink.pro/ /filecrypt.(cc|co)/ /^(https?:\/\/)(.+)?((actualpost|americanstylo|beautifulfashionnailart|dadinthemaking|glowandglamcorner|listofthis|lobirtech|travelperi|vepiv|seydisehirmansethaber|turkiyertg|tophotelsukraine|balatroltd|tenorminiuk|icryptowin|chronoat|ecoinfotec|bcsclass|mainitbd|newselab|dizok|uzaay|tophistoryview|9sblog|ubnem|techavash|6harfli|professionaley|playghub|apkvmod|apkallworld|techoflix|toplistee|games2mobile|nivtu|bflig|jplna|bilgilendirici).com|(makego|sakazi|momge|englishgrammarpro|arab-plus).net|askerlikforum.com.tr|misterio.ro|(forp|bevery|fanuze).xyz|gamcabd.org|gamerking.shop)(\/.*)/ /(mega-enlace|acortados).com/ diff --git a/untouched_Bypass_All_Shortlinks_patched.user.js b/untouched_Bypass_All_Shortlinks_patched.user.js index a597618..8aebe7b 100644 --- a/untouched_Bypass_All_Shortlinks_patched.user.js +++ b/untouched_Bypass_All_Shortlinks_patched.user.js @@ -37,7 +37,7 @@ // @namespace Violentmonkey Scripts // @run-at document-start // @author Bloggerpemula -// @version 93.7.8 +// @version 93.7.9 // @match *://*/* // @grant GM_setValue // @grant GM_getValue