mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-12-15 00:22:08 +01:00
18 lines
425 B
TypeScript
18 lines
425 B
TypeScript
import { HostMatchType, type Host } from '@/lib/host';
|
|
|
|
export default {
|
|
name: 'Streamzz',
|
|
id: 'streamzz',
|
|
domains: ['streamzz.to', 'streamz.ws'],
|
|
regex: [/(?<=\|)\w{2,}/gm],
|
|
|
|
match: async function (match: RegExpMatchArray) {
|
|
return {
|
|
type: HostMatchType.HLS,
|
|
url: `https://get.${location.hostname.split('.')[0]}.tw/getlink-${
|
|
match.sort((a, b) => b.length - a.length)[0]
|
|
}.dll`
|
|
};
|
|
}
|
|
} satisfies Host;
|