mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 18:40:31 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e027c2e09e | |||
f9a0656d4d | |||
382d8b1268 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stream-bypass",
|
||||
"version": "2.1.3",
|
||||
"version": "2.1.4",
|
||||
"description": "Multi-browser addon for multiple streaming providers which redirects directly to the source video",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
|
@ -4,20 +4,20 @@ import {Match, matches} from "./match/matches";
|
||||
|
||||
async function main() {
|
||||
let match: Match;
|
||||
let redirect = false;
|
||||
if ((match = await getMatch(window.location.host)) === undefined) {
|
||||
let id: string
|
||||
if ((id = await storageGet('redirect')) !== undefined) {
|
||||
redirect = true
|
||||
match = matches.find(m => m.id === id)
|
||||
await storageDelete('redirect')
|
||||
} else {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
const re = document.body.innerHTML.match(match.regex)
|
||||
if (re === null) {
|
||||
return
|
||||
}
|
||||
if (re === null) return
|
||||
if (redirect) await storageDelete('redirect')
|
||||
|
||||
const url = await match.match(re)
|
||||
|
||||
|
@ -23,7 +23,8 @@ class Doodstream implements Match {
|
||||
domains = [
|
||||
'doodstream.com',
|
||||
'dood.pm',
|
||||
'dood.ws'
|
||||
'dood.ws',
|
||||
'dood.wf'
|
||||
]
|
||||
replace = true
|
||||
regex = new RegExp(/(\/pass_md5\/.*?)'.*(\?token=.*?expiry=)/s)
|
||||
|
Reference in New Issue
Block a user