mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 18:40:31 +02:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
7bfae612f9 | |||
106f4ffda3 | |||
b83d287a42 | |||
a39418e506 | |||
0fc06a78a7 | |||
90bed8b774 |
@ -29,6 +29,7 @@ Supported streaming providers (for a complete list of all supported websites, se
|
||||
<li><a href="https://evoload.io">evoload.io</a></li>
|
||||
<li><a href="https://mcloud.to">mcloud.to</a></li>
|
||||
<li><a href="https://mixdrop.co">mixdrop.co</a></li>
|
||||
<li><a href="https://newgrounds.com">newgrounds.com</a></li>
|
||||
<li><a href="https://streamtape.com">streamtape.com</a></li>
|
||||
<li><a href="https://streamzz.to">streamzz.to</a></li>
|
||||
<li><a href="https://thevideome.com">thevideome.com</a></li>
|
||||
|
@ -1,6 +1,7 @@
|
||||
evoload.io
|
||||
mcloud.to
|
||||
mixdrop.co
|
||||
newgrounds.com
|
||||
streamtape.com
|
||||
streamzz.to
|
||||
thevideome.com
|
||||
|
2
build.py
2
build.py
@ -37,7 +37,7 @@ def write_manifest():
|
||||
manifest = json.load(open('src/manifest.json', 'r'))
|
||||
|
||||
for content_script in manifest['content_scripts']:
|
||||
content_script['matches'] = [f'*://{match}/*' for match in matches]
|
||||
content_script['matches'] = [f'*://*.{match}/*' for match in matches]
|
||||
|
||||
json.dump(manifest, open('src/manifest.json', 'w'), indent=2)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Stream Bypass",
|
||||
"author": "ByteDream",
|
||||
"description": "A multi-browser addon / extension for multiple streaming providers which redirects directly to the source video.",
|
||||
"version": "1.5.0",
|
||||
"version": "1.6.0",
|
||||
"homepage_url": "https://github.com/ByteDream/stream-bypass",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
@ -14,19 +14,20 @@
|
||||
{
|
||||
"all_frames": true,
|
||||
"matches": [
|
||||
"*://evoload.io/*",
|
||||
"*://mcloud.to/*",
|
||||
"*://mixdrop.co/*",
|
||||
"*://streamtape.com/*",
|
||||
"*://streamzz.to/*",
|
||||
"*://thevideome.com/*",
|
||||
"*://vidlox.me/*",
|
||||
"*://vidstream.pro/*",
|
||||
"*://vidoza.net/*",
|
||||
"*://vivo.st/*",
|
||||
"*://vivo.sx/*",
|
||||
"*://voe.sx/*",
|
||||
"*://vupload.com/*"
|
||||
"*://*.evoload.io/*",
|
||||
"*://*.mcloud.to/*",
|
||||
"*://*.mixdrop.co/*",
|
||||
"*://*.newgrounds.com/*",
|
||||
"*://*.streamtape.com/*",
|
||||
"*://*.streamzz.to/*",
|
||||
"*://*.thevideome.com/*",
|
||||
"*://*.vidlox.me/*",
|
||||
"*://*.vidstream.pro/*",
|
||||
"*://*.vidoza.net/*",
|
||||
"*://*.vivo.st/*",
|
||||
"*://*.vivo.sx/*",
|
||||
"*://*.voe.sx/*",
|
||||
"*://*.vupload.com/*"
|
||||
],
|
||||
"js": [
|
||||
"match.js",
|
||||
|
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 {
|
||||
async match(match: RegExpMatchArray): Promise<string> {
|
||||
return `https://streamtape.com/get_video?${match[0]}`
|
||||
@ -111,6 +124,7 @@ const matches = [
|
||||
['evoload.io', null, new Evoload(), Reliability.NORMAL],
|
||||
['mcloud.to', new RegExp(/(?<=')\w+(?=';)/gm), new MCloud(), Reliability.NORMAL],
|
||||
['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],
|
||||
['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],
|
||||
|
Reference in New Issue
Block a user