Remove old and not working websites

This commit is contained in:
bytedream 2022-06-16 19:23:13 +02:00
parent 27c03c0b5b
commit aa51b5d95f
2 changed files with 16 additions and 46 deletions

View File

@ -15,17 +15,13 @@
"all_frames": true, "all_frames": true,
"matches": [ "matches": [
"*://*.evoload.io/*", "*://*.evoload.io/*",
"*://*.mcloud.to/*",
"*://*.mixdrop.co/*", "*://*.mixdrop.co/*",
"*://*.newgrounds.com/*", "*://*.newgrounds.com/*",
"*://*.streamtape.com/*", "*://*.streamtape.com/*",
"*://*.streamzz.to/*", "*://*.streamzz.to/*",
"*://*.thevideome.com/*",
"*://*.upstream.to/*", "*://*.upstream.to/*",
"*://*.vidlox.me/*", "*://*.vidlox.me/*",
"*://*.vidstream.pro/*",
"*://*.vidoza.net/*", "*://*.vidoza.net/*",
"*://*.vivo.st/*",
"*://*.vivo.sx/*", "*://*.vivo.sx/*",
"*://*.voe.sx/*", "*://*.voe.sx/*",
"*://*.voeunblk.com/*", "*://*.voeunblk.com/*",

View File

@ -12,7 +12,6 @@ export abstract class Match {
regex: RegExp regex: RegExp
abstract match(match: RegExpMatchArray): Promise<string> abstract match(match: RegExpMatchArray): Promise<string>
locked?: boolean
notice?: string notice?: string
} }
@ -40,28 +39,6 @@ class Evoload implements Match {
} }
} }
class MCloud implements Match {
name = 'MCloud'
id = 'mcloud'
reliability = Reliability.HIGH
domains = [
'mcloud.to'
]
regex = new RegExp(/(?<=')\w+(?=';)/gm)
async match(match: RegExpMatchArray): Promise<string> {
const code = window.location.pathname.split('/').slice(-1)[0]
const response = await fetch(`https://mcloud.to/info/${code}?skey=${match[0]}`, {
headers: {
'Content-Type': 'application/json'
},
referrer: `https://mcloud.to/embed/${code}`
})
const json = await response.json()
return json['media']['sources'][0]['file']
}
}
class Mixdrop implements Match { class Mixdrop implements Match {
name = 'Mixdrop' name = 'Mixdrop'
id = 'mixdrop' id = 'mixdrop'
@ -76,6 +53,20 @@ class Mixdrop implements Match {
} }
} }
/*class Mp4Upload implements Match {
name = 'Mp4Upload'
id = 'mp4upload'
reliability = Reliability.LOW
domains = [
'mp4upload.com'
]
regex = new RegExp(/(?<=\|)\w{2,}/gm)
async match(match: RegExpMatchArray): Promise<string> {
return `https://${match[34]}.mp4upload.com:${match[89]}/d/${match[88]}/video.mp4`
}
}*/
class Newgrounds implements Match { class Newgrounds implements Match {
name = 'Newgrounds' name = 'Newgrounds'
id = 'newgrounds' id = 'newgrounds'
@ -125,20 +116,6 @@ class Streamzz implements Match {
} }
} }
class TheVideoMe implements Match {
name = 'TheVideoMe'
id = 'thevideome'
reliability = Reliability.NORMAL
domains = [
'thevideome.com'
]
regex = new RegExp(/(?<=\|)\w{2,}/gm)
async match(match: RegExpMatchArray): Promise<string> {
return `https://thevideome.com/${match[5]}.mp4`
}
}
class Upstream implements Match { class Upstream implements Match {
name = 'Upstream' name = 'Upstream'
id = 'upstream' id = 'upstream'
@ -206,12 +183,11 @@ class Vidoza implements Match {
class Vivo implements Match { class Vivo implements Match {
name = 'Vivo' name = 'Vivo'
id = 'vivo' id = 'vivo'
reliability = Reliability.HIGH reliability = Reliability.LOW
domains = [ domains = [
'vivo.st',
'vivo.sx' 'vivo.sx'
] ]
regex = new RegExp(/(?<=source:\s')(\S+)(?=')/gm) regex = new RegExp(/(?<=source:\s')(\S+)(?=')/gms)
async match(match: RegExpMatchArray): Promise<string> { async match(match: RegExpMatchArray): Promise<string> {
return this.rot47(decodeURIComponent(match[0])) return this.rot47(decodeURIComponent(match[0]))
@ -263,12 +239,10 @@ class Vupload implements Match {
export const matches = [ export const matches = [
new Evoload(), new Evoload(),
new MCloud(),
new Mixdrop(), new Mixdrop(),
new Newgrounds(), new Newgrounds(),
new Streamtape(), new Streamtape(),
new Streamzz(), new Streamzz(),
new TheVideoMe(),
new Upstream(), new Upstream(),
new Vidlox(), new Vidlox(),
new Vidoza(), new Vidoza(),