mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +02:00
Lint
This commit is contained in:
parent
a21f799e7d
commit
7000d5a08b
@ -20,11 +20,13 @@
|
|||||||
{#if errorMessage}
|
{#if errorMessage}
|
||||||
<div id="message-container">
|
<div id="message-container">
|
||||||
<p>
|
<p>
|
||||||
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||||
{@html errorMessage}
|
{@html errorMessage}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<!-- eslint-disable -->
|
||||||
<style lang="scss" global>
|
<style lang="scss" global>
|
||||||
body {
|
body {
|
||||||
background-color: #131313;
|
background-color: #131313;
|
||||||
|
@ -121,6 +121,7 @@
|
|||||||
>
|
>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<!-- eslint-disable -->
|
||||||
<style lang="scss" global>
|
<style lang="scss" global>
|
||||||
body {
|
body {
|
||||||
background-color: #2b2a33;
|
background-color: #2b2a33;
|
||||||
|
@ -60,10 +60,10 @@ export const DropLoad: Match = {
|
|||||||
id: 'dropload',
|
id: 'dropload',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -73,7 +73,7 @@ export const Filemoon: Match = {
|
|||||||
id: 'filemoon',
|
id: 'filemoon',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
const unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
@ -98,10 +98,10 @@ export const Kwik: Match = {
|
|||||||
id: 'kwik',
|
id: 'kwik',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
return unpacked.match(/(?<=source=').*(?=')/)[0];
|
return unpacked.match(/(?<=source=').*(?=')/)[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -111,11 +111,11 @@ export const Mixdrop: Match = {
|
|||||||
id: 'mixdrop',
|
id: 'mixdrop',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
let url = unpacked.match(/(?<=MDCore.wurl=").*(?=")/)[0];
|
const url = unpacked.match(/(?<=MDCore.wurl=").*(?=")/)[0];
|
||||||
return `https:${url}`;
|
return `https:${url}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -126,10 +126,10 @@ export const Mp4Upload: Match = {
|
|||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
return unpacked.match(/(?<=player.src\(").*(?=")/)[0];
|
return unpacked.match(/(?<=player.src\(").*(?=")/)[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -141,14 +141,14 @@ export const Newgrounds: Match = {
|
|||||||
domains: ['newgrounds.com'],
|
domains: ['newgrounds.com'],
|
||||||
regex: /.*/gm,
|
regex: /.*/gm,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async () => {
|
||||||
let id = window.location.pathname.split('/').slice(-1)[0];
|
const id = window.location.pathname.split('/').slice(-1)[0];
|
||||||
let response = await fetch(`https://www.newgrounds.com/portal/video/${id}`, {
|
const response = await fetch(`https://www.newgrounds.com/portal/video/${id}`, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-Requested-With': 'XMLHttpRequest'
|
'X-Requested-With': 'XMLHttpRequest'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let json = await response.json();
|
const json = await response.json();
|
||||||
return decodeURI(json['sources'][Object.keys(json['sources'])[0]][0]['src']);
|
return decodeURI(json['sources'][Object.keys(json['sources'])[0]][0]['src']);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -192,10 +192,10 @@ export const SuperVideo: Match = {
|
|||||||
id: 'supervideo',
|
id: 'supervideo',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -205,10 +205,10 @@ export const Upstream: Match = {
|
|||||||
id: 'upstream',
|
id: 'upstream',
|
||||||
reliability: Reliability.HIGH,
|
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,
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
match: async (match: RegExpMatchArray) => {
|
||||||
let unpacked = await unpack(match[0]);
|
const unpacked = await unpack(match[0]);
|
||||||
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
return unpacked.match(/(?<=file:").*(?=")/)[0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,7 @@ export const Hosters = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
enable: async (match: Match) => {
|
enable: async (match: Match) => {
|
||||||
let disabled = await storageGet('hosters.disabled', []);
|
const disabled = await storageGet('hosters.disabled', []);
|
||||||
const index = disabled.indexOf(match.id);
|
const index = disabled.indexOf(match.id);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
disabled.splice(index, 1);
|
disabled.splice(index, 1);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Adapted from http://matthewfl.com/unPacker.html by matthew@matthewfl.com
|
// Adapted from http://matthewfl.com/unPacker.html by matthew@matthewfl.com
|
||||||
export async function unpack(packed: string): Promise<string> {
|
export async function unpack(packed: string): Promise<string> {
|
||||||
let context = `
|
const context = `
|
||||||
{
|
{
|
||||||
eval: function (c) {
|
eval: function (c) {
|
||||||
packed = c;
|
packed = c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user