Update voe.sx to catch every redirect url

This commit is contained in:
bytedream 2025-04-03 22:55:24 +02:00
parent 7067aaf4a0
commit 8852318483

View File

@ -275,11 +275,22 @@ export const Vidoza: Match = {
export const Voe: Match = { export const Voe: Match = {
name: 'Voe', name: 'Voe',
id: 'voe', id: 'voe',
domains: ['voe.sx', 'maxfinishseveral.com'], domains: ['voe.sx'],
regex: [/(?<='hls':\s*')\S*(?=')/gm], regex: [
// voe.sx
/(?<=window\.location\.href\s=\s')\S*(?=')/gm,
// whatever site voe.sx redirects to
/(?<='hls':\s*')\S*(?=')/gm
],
match: async (match: RegExpMatchArray) => { match: async (match: RegExpMatchArray) => {
return atob(match[0]); if (window.location.host === 'voe.sx') {
const redirectUrl = new URL(match[0]);
await TmpHost.set(redirectUrl.host, Voe);
return null;
} else {
return atob(match[0]);
}
} }
}; };