add missing automation for aylink.co, cpmlink.pro

https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated/issues/238
This commit is contained in:
Amm0ni4 2025-02-13 01:29:42 +01:00
parent d5dda0756f
commit cc228e1441
5 changed files with 39 additions and 3 deletions

View file

@ -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/

View file

@ -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() {

View file

@ -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() {

View file

@ -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/

View file

@ -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