mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 10:30:31 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
6583b0c15c | |||
038f708b36 |
@ -24,8 +24,6 @@ chrome.storage.local.get(['all', 'disabled'], function (result) {
|
||||
re = document.body.innerHTML.match(regex)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
if (matchClass === null) {
|
||||
if (regex === null) {
|
||||
location.assign(document.body.innerHTML)
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Stream Bypass",
|
||||
"author": "ByteDream",
|
||||
"description": "",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"homepage_url": "https://github.com/ByteDream/stream-bypass",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
|
@ -38,7 +38,7 @@ class TheVideoMe implements Match {
|
||||
|
||||
class Vivo implements Match {
|
||||
async match(match: RegExpMatchArray): Promise<string> {
|
||||
return this.rot47(decodeURIComponent(match[1]))
|
||||
return this.rot47(decodeURIComponent(match[0]))
|
||||
}
|
||||
|
||||
// decrypts a string with the rot47 algorithm (https://en.wikipedia.org/wiki/ROT13#Variants)
|
||||
@ -71,8 +71,8 @@ const matches = [
|
||||
['thevideome.com', new RegExp(/(?<=\|)\w{2,}/gm), new TheVideoMe()],
|
||||
['vidlox.me', new RegExp(/(?<=\[")\S+?(?=")/gm), null],
|
||||
['vidoza.net', new RegExp(/(?<=src:(\s*)?")\S*(?=")/gm), null],
|
||||
['vivo.st', new RegExp(/source:\s*'(\S+)'/gm), new Vivo()],
|
||||
['vivo.sx', new RegExp(/source:\s*'(\S+)'/gm), new Vivo()],
|
||||
['vivo.st', new RegExp(/(?<=source:\s')(\S+)(?=')/gm), new Vivo()],
|
||||
['vivo.sx', new RegExp(/(?<=source:\s')(\S+)(?=')/gm), new Vivo()],
|
||||
['voe.sx', new RegExp(/https?:\/\/\S*m3u8(?=")/gm), null],
|
||||
['vupload.com', new RegExp(/(?<=class\|)\w*/gm), new Vupload()]
|
||||
]
|
||||
|
Reference in New Issue
Block a user