2 Commits

Author SHA1 Message Date
6583b0c15c Updated version 2021-09-13 17:14:30 +02:00
038f708b36 Fixed vivo.sx / vivo.st regex and unwanted return 2021-09-13 17:13:49 +02:00
3 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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": {

View File

@ -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()]
]