mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 18:40:31 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e027c2e09e | |||
f9a0656d4d | |||
382d8b1268 | |||
5b8639ce6a |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "stream-bypass",
|
"name": "stream-bypass",
|
||||||
"version": "2.1.2",
|
"version": "2.1.4",
|
||||||
"description": "Multi-browser addon for multiple streaming providers which redirects directly to the source video",
|
"description": "Multi-browser addon for multiple streaming providers which redirects directly to the source video",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -4,20 +4,20 @@ import {Match, matches} from "./match/matches";
|
|||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
let match: Match;
|
let match: Match;
|
||||||
|
let redirect = false;
|
||||||
if ((match = await getMatch(window.location.host)) === undefined) {
|
if ((match = await getMatch(window.location.host)) === undefined) {
|
||||||
let id: string
|
let id: string
|
||||||
if ((id = await storageGet('redirect')) !== undefined) {
|
if ((id = await storageGet('redirect')) !== undefined) {
|
||||||
|
redirect = true
|
||||||
match = matches.find(m => m.id === id)
|
match = matches.find(m => m.id === id)
|
||||||
await storageDelete('redirect')
|
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const re = document.body.innerHTML.match(match.regex)
|
const re = document.body.innerHTML.match(match.regex)
|
||||||
if (re === null) {
|
if (re === null) return
|
||||||
return
|
if (redirect) await storageDelete('redirect')
|
||||||
}
|
|
||||||
|
|
||||||
const url = await match.match(re)
|
const url = await match.match(re)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Stream Bypass",
|
"name": "Stream Bypass",
|
||||||
"author": "ByteDream",
|
"author": "ByteDream",
|
||||||
"description": "A multi-browser addon / extension for multiple streaming providers which redirects directly to the source video.",
|
"description": "A multi-browser addon / extension for multiple streaming providers which redirects directly to the source video.",
|
||||||
"version": "2.1.2",
|
"version": "2.1.3",
|
||||||
"homepage_url": "https://github.com/ByteDream/stream-bypass",
|
"homepage_url": "https://github.com/ByteDream/stream-bypass",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
@ -23,7 +23,8 @@ class Doodstream implements Match {
|
|||||||
domains = [
|
domains = [
|
||||||
'doodstream.com',
|
'doodstream.com',
|
||||||
'dood.pm',
|
'dood.pm',
|
||||||
'dood.ws'
|
'dood.ws',
|
||||||
|
'dood.wf'
|
||||||
]
|
]
|
||||||
replace = true
|
replace = true
|
||||||
regex = new RegExp(/(\/pass_md5\/.*?)'.*(\?token=.*?expiry=)/s)
|
regex = new RegExp(/(\/pass_md5\/.*?)'.*(\?token=.*?expiry=)/s)
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<video id="video"></video>
|
<video id="video"></video>
|
||||||
<div id="message-container" hidden>
|
<div id="message-container">
|
||||||
<p id="message"></p>
|
<p id="message"></p>
|
||||||
<br>
|
<br>
|
||||||
<p>Open a new issue <a href="https://github.com/ByteDream/stream-bypass/issues/new">here</a></p>
|
<p>Open a new issue <a href="https://github.com/ByteDream/stream-bypass/issues/new">here</a></p>
|
||||||
|
@ -12,6 +12,7 @@ video
|
|||||||
left: 0
|
left: 0
|
||||||
|
|
||||||
#message-container
|
#message-container
|
||||||
|
visibility: hidden
|
||||||
display: flex
|
display: flex
|
||||||
justify-content: center
|
justify-content: center
|
||||||
align-items: center
|
align-items: center
|
||||||
@ -20,5 +21,8 @@ video
|
|||||||
text-align: center
|
text-align: center
|
||||||
height: 100%
|
height: 100%
|
||||||
|
|
||||||
|
& *
|
||||||
|
visibility: inherit
|
||||||
|
|
||||||
& a, & a:visited
|
& a, & a:visited
|
||||||
color: red
|
color: red
|
||||||
|
@ -4,7 +4,7 @@ import Hls from "hls.js";
|
|||||||
|
|
||||||
function show_message(message: string) {
|
function show_message(message: string) {
|
||||||
document.getElementById('message').innerText = message
|
document.getElementById('message').innerText = message
|
||||||
document.getElementById('message-container').hidden = false
|
document.getElementById('message-container').style.visibility = 'visible'
|
||||||
document.getElementById('video').hidden = true
|
document.getElementById('video').hidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user