mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +02:00
Added newgrounds.com
This commit is contained in:
parent
a39418e506
commit
b83d287a42
@ -1,6 +1,7 @@
|
|||||||
evoload.io
|
evoload.io
|
||||||
mcloud.to
|
mcloud.to
|
||||||
mixdrop.co
|
mixdrop.co
|
||||||
|
newgrounds.com
|
||||||
streamtape.com
|
streamtape.com
|
||||||
streamzz.to
|
streamzz.to
|
||||||
thevideome.com
|
thevideome.com
|
||||||
|
14
src/match.ts
14
src/match.ts
@ -44,6 +44,19 @@ class Mixdrop implements Match {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class Newgrounds implements Match {
|
||||||
|
async match(match: RegExpMatchArray): Promise<string> {
|
||||||
|
let id = window.location.pathname.split('/').slice(-1)[0]
|
||||||
|
let response = await fetch(`https://www.newgrounds.com/portal/video/${id}`, {
|
||||||
|
headers: {
|
||||||
|
'X-Requested-With': 'XMLHttpRequest'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let json = await response.json()
|
||||||
|
return decodeURI(json['sources'][Object.keys(json['sources'])[0]][0]['src'])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class Streamtape implements Match {
|
class Streamtape implements Match {
|
||||||
async match(match: RegExpMatchArray): Promise<string> {
|
async match(match: RegExpMatchArray): Promise<string> {
|
||||||
return `https://streamtape.com/get_video?${match[0]}`
|
return `https://streamtape.com/get_video?${match[0]}`
|
||||||
@ -111,6 +124,7 @@ const matches = [
|
|||||||
['evoload.io', null, new Evoload(), Reliability.NORMAL],
|
['evoload.io', null, new Evoload(), Reliability.NORMAL],
|
||||||
['mcloud.to', new RegExp(/(?<=')\w+(?=';)/gm), new MCloud(), Reliability.NORMAL],
|
['mcloud.to', new RegExp(/(?<=')\w+(?=';)/gm), new MCloud(), Reliability.NORMAL],
|
||||||
['mixdrop.co', new RegExp(/(?<=\|)\w{2,}/gm), new Mixdrop(), Reliability.HIGH],
|
['mixdrop.co', new RegExp(/(?<=\|)\w{2,}/gm), new Mixdrop(), Reliability.HIGH],
|
||||||
|
['newgrounds.com', null, new Newgrounds(), Reliability.HIGH],
|
||||||
['streamtape.com', new RegExp(/id=\S*(?=')/gm), new Streamtape(), Reliability.NORMAL],
|
['streamtape.com', new RegExp(/id=\S*(?=')/gm), new Streamtape(), Reliability.NORMAL],
|
||||||
['streamzz.to', new RegExp(/https?:\/\/get.streamz.tw\/getlink-\w+\.dll/gm), null, Reliability.NORMAL],
|
['streamzz.to', new RegExp(/https?:\/\/get.streamz.tw\/getlink-\w+\.dll/gm), null, Reliability.NORMAL],
|
||||||
['thevideome.com', new RegExp(/(?<=\|)\w{2,}/gm), new TheVideoMe(), Reliability.NORMAL],
|
['thevideome.com', new RegExp(/(?<=\|)\w{2,}/gm), new TheVideoMe(), Reliability.NORMAL],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user