mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +02:00
Remove reliability
This commit is contained in:
parent
c643a39e2d
commit
bf8a7eb602
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { matches, Reliability } from '~/lib/match';
|
import { matches } from '~/lib/match';
|
||||||
import { Hosters, Other } from '~/lib/settings';
|
import { Hosters, Other } from '~/lib/settings';
|
||||||
|
|
||||||
let hostersEnabled: boolean;
|
let hostersEnabled: boolean;
|
||||||
@ -52,13 +52,7 @@
|
|||||||
{#each hosters as hoster}
|
{#each hosters as hoster}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="setting-name">
|
<td class="setting-name">
|
||||||
<p
|
<p>{hoster.name}</p>
|
||||||
class:reliability-low={hoster.reliability === Reliability.LOW}
|
|
||||||
class:reliability-normal={hoster.reliability === Reliability.NORMAL}
|
|
||||||
class:reliability-high={hoster.reliability === Reliability.HIGH}
|
|
||||||
>
|
|
||||||
{hoster.name}
|
|
||||||
</p>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="buttons">
|
<td class="buttons">
|
||||||
<button
|
<button
|
||||||
@ -202,17 +196,4 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.reliability-low {
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-color: red;
|
|
||||||
}
|
|
||||||
.reliability-normal {
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-color: yellow;
|
|
||||||
}
|
|
||||||
.reliability-high {
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-color: #00ff00;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,16 +1,9 @@
|
|||||||
import { unpack } from './utils';
|
import { unpack } from './utils';
|
||||||
import { Hosters } from './settings';
|
import { Hosters } from './settings';
|
||||||
|
|
||||||
export enum Reliability {
|
|
||||||
HIGH,
|
|
||||||
NORMAL,
|
|
||||||
LOW
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Match {
|
export interface Match {
|
||||||
name: string;
|
name: string;
|
||||||
id: string;
|
id: string;
|
||||||
reliability: Reliability;
|
|
||||||
domains: string[];
|
domains: string[];
|
||||||
replace?: boolean;
|
replace?: boolean;
|
||||||
regex: RegExp;
|
regex: RegExp;
|
||||||
@ -22,7 +15,6 @@ export interface Match {
|
|||||||
export const Doodstream: Match = {
|
export const Doodstream: Match = {
|
||||||
name: 'Doodstream',
|
name: 'Doodstream',
|
||||||
id: 'doodstream',
|
id: 'doodstream',
|
||||||
reliability: Reliability.NORMAL,
|
|
||||||
domains: [
|
domains: [
|
||||||
'doodstream.com',
|
'doodstream.com',
|
||||||
'dood.pm',
|
'dood.pm',
|
||||||
@ -59,7 +51,6 @@ export const Doodstream: Match = {
|
|||||||
export const DropLoad: Match = {
|
export const DropLoad: Match = {
|
||||||
name: 'Dropload',
|
name: 'Dropload',
|
||||||
id: 'dropload',
|
id: 'dropload',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['dropload.ui'],
|
domains: ['dropload.ui'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -72,7 +63,6 @@ export const DropLoad: Match = {
|
|||||||
export const Filemoon: Match = {
|
export const Filemoon: Match = {
|
||||||
name: 'Filemoon',
|
name: 'Filemoon',
|
||||||
id: 'filemoon',
|
id: 'filemoon',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['filemoon.sx', 'filemoon.in'],
|
domains: ['filemoon.sx', 'filemoon.in'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -85,7 +75,6 @@ export const Filemoon: Match = {
|
|||||||
export const GoodStream: Match = {
|
export const GoodStream: Match = {
|
||||||
name: 'Goodstream',
|
name: 'Goodstream',
|
||||||
id: 'goodstream',
|
id: 'goodstream',
|
||||||
reliability: Reliability.NORMAL,
|
|
||||||
domains: ['goodstream.uno'],
|
domains: ['goodstream.uno'],
|
||||||
regex: /(?<=file:\s+").*(?=")/g,
|
regex: /(?<=file:\s+").*(?=")/g,
|
||||||
|
|
||||||
@ -97,7 +86,6 @@ export const GoodStream: Match = {
|
|||||||
export const Kwik: Match = {
|
export const Kwik: Match = {
|
||||||
name: 'Kwik',
|
name: 'Kwik',
|
||||||
id: 'kwik',
|
id: 'kwik',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['kwik.cx'],
|
domains: ['kwik.cx'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -110,7 +98,6 @@ export const Kwik: Match = {
|
|||||||
export const Mixdrop: Match = {
|
export const Mixdrop: Match = {
|
||||||
name: 'Mixdrop',
|
name: 'Mixdrop',
|
||||||
id: 'mixdrop',
|
id: 'mixdrop',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['mixdrop.co', 'mixdrop.to', 'mixdrop.ch', 'mixdrop.bz', 'mixdrop.gl'],
|
domains: ['mixdrop.co', 'mixdrop.to', 'mixdrop.ch', 'mixdrop.bz', 'mixdrop.gl'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -124,7 +111,6 @@ export const Mixdrop: Match = {
|
|||||||
export const Mp4Upload: Match = {
|
export const Mp4Upload: Match = {
|
||||||
name: 'Mp4Upload',
|
name: 'Mp4Upload',
|
||||||
id: 'mp4upload',
|
id: 'mp4upload',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['mp4upload.com'],
|
domains: ['mp4upload.com'],
|
||||||
replace: true,
|
replace: true,
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
@ -138,7 +124,6 @@ export const Mp4Upload: Match = {
|
|||||||
export const Newgrounds: Match = {
|
export const Newgrounds: Match = {
|
||||||
name: 'Newgrounds',
|
name: 'Newgrounds',
|
||||||
id: 'newgrounds',
|
id: 'newgrounds',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['newgrounds.com'],
|
domains: ['newgrounds.com'],
|
||||||
regex: /.*/gm,
|
regex: /.*/gm,
|
||||||
|
|
||||||
@ -157,7 +142,6 @@ export const Newgrounds: Match = {
|
|||||||
export const Streamtape: Match = {
|
export const Streamtape: Match = {
|
||||||
name: 'Streamtape',
|
name: 'Streamtape',
|
||||||
id: 'streamtape',
|
id: 'streamtape',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['streamtape.com', 'streamtape.net', 'shavetape.cash'],
|
domains: ['streamtape.com', 'streamtape.net', 'shavetape.cash'],
|
||||||
regex: /id=.*(?=')/gm,
|
regex: /id=.*(?=')/gm,
|
||||||
|
|
||||||
@ -177,7 +161,6 @@ export const Streamtape: Match = {
|
|||||||
export const Streamzz: Match = {
|
export const Streamzz: Match = {
|
||||||
name: 'Streamzz',
|
name: 'Streamzz',
|
||||||
id: 'streamzz',
|
id: 'streamzz',
|
||||||
reliability: Reliability.LOW,
|
|
||||||
domains: ['streamzz.to', 'streamz.ws'],
|
domains: ['streamzz.to', 'streamz.ws'],
|
||||||
regex: /(?<=\|)\w{2,}/gm,
|
regex: /(?<=\|)\w{2,}/gm,
|
||||||
|
|
||||||
@ -191,7 +174,6 @@ export const Streamzz: Match = {
|
|||||||
export const SuperVideo: Match = {
|
export const SuperVideo: Match = {
|
||||||
name: 'Supervideo',
|
name: 'Supervideo',
|
||||||
id: 'supervideo',
|
id: 'supervideo',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['supervideo.tv'],
|
domains: ['supervideo.tv'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -204,7 +186,6 @@ export const SuperVideo: Match = {
|
|||||||
export const Upstream: Match = {
|
export const Upstream: Match = {
|
||||||
name: 'Upstream',
|
name: 'Upstream',
|
||||||
id: 'upstream',
|
id: 'upstream',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['upstream.to'],
|
domains: ['upstream.to'],
|
||||||
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
regex: /eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms,
|
||||||
|
|
||||||
@ -217,7 +198,6 @@ export const Upstream: Match = {
|
|||||||
export const Vidmoly: Match = {
|
export const Vidmoly: Match = {
|
||||||
name: 'Vidmoly',
|
name: 'Vidmoly',
|
||||||
id: 'vidmoly',
|
id: 'vidmoly',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['vidmoly.me', 'vidmoly.to'],
|
domains: ['vidmoly.me', 'vidmoly.to'],
|
||||||
regex: /(?<=file:").+\.m3u8(?=")/gm,
|
regex: /(?<=file:").+\.m3u8(?=")/gm,
|
||||||
|
|
||||||
@ -229,7 +209,6 @@ export const Vidmoly: Match = {
|
|||||||
export const Vidoza: Match = {
|
export const Vidoza: Match = {
|
||||||
name: 'Vidoza',
|
name: 'Vidoza',
|
||||||
id: 'vidoza',
|
id: 'vidoza',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['vidoza.net'],
|
domains: ['vidoza.net'],
|
||||||
regex: /(?<=src:\s?").+?(?=")/gm,
|
regex: /(?<=src:\s?").+?(?=")/gm,
|
||||||
|
|
||||||
@ -241,7 +220,6 @@ export const Vidoza: Match = {
|
|||||||
export const Voe: Match = {
|
export const Voe: Match = {
|
||||||
name: 'Voe',
|
name: 'Voe',
|
||||||
id: 'voe',
|
id: 'voe',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['voe.sx'],
|
domains: ['voe.sx'],
|
||||||
regex: /https?:\/\/\S*m3u8.+(?=['"])/gm,
|
regex: /https?:\/\/\S*m3u8.+(?=['"])/gm,
|
||||||
|
|
||||||
@ -253,7 +231,6 @@ export const Voe: Match = {
|
|||||||
export const Vupload: Match = {
|
export const Vupload: Match = {
|
||||||
name: 'Vupload',
|
name: 'Vupload',
|
||||||
id: 'vupload',
|
id: 'vupload',
|
||||||
reliability: Reliability.HIGH,
|
|
||||||
domains: ['vupload.com'],
|
domains: ['vupload.com'],
|
||||||
regex: /(?<=src:\s?").+?(?=")/gm,
|
regex: /(?<=src:\s?").+?(?=")/gm,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user