diff --git a/build.py b/build.py index 2a1e513..c0cf3aa 100644 --- a/build.py +++ b/build.py @@ -3,6 +3,7 @@ import argparse import json import sys +import urllib.request from pathlib import Path import re import shutil @@ -114,6 +115,19 @@ def copy_built(): elif file.suffix != '.ts': shutil.copy(str(file), str(build_file)) + ext_path = Path('build', 'ext') + if not ext_path.is_dir(): + ext_path.mkdir() + for name, url in { + 'hls.js': 'https://cdn.jsdelivr.net/npm/hls.js@latest', + 'popper.js': 'https://unpkg.com/@popperjs/core@2', + 'tippy.js': 'https://unpkg.com/tippy.js@6' + }.items(): + with open(ext_path.joinpath(name), 'wb') as f: + ext_js = urllib.request.urlopen(url) + f.write(ext_js.read()) + f.close() + def clean_build(): for file in Path('src').rglob('*'): diff --git a/src/manifest.json b/src/manifest.json index b3bb93b..9a7ae94 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "manifest_version": 2, "name": "Stream Bypass", "author": "ByteDream", - "description": "", - "version": "1.2.0", + "description": "A multi-browser addon / extension for multiple streaming providers which redirects directly to the source video.", + "version": "1.3.0", "homepage_url": "https://github.com/ByteDream/stream-bypass", "browser_specific_settings": { "gecko": { diff --git a/src/popup/popup.html b/src/popup/popup.html index db13593..05c9091 100644 --- a/src/popup/popup.html +++ b/src/popup/popup.html @@ -4,8 +4,9 @@ Title - - + + + diff --git a/src/res/hls.html b/src/res/hls.html index 1739f81..ca97c0c 100644 --- a/src/res/hls.html +++ b/src/res/hls.html @@ -3,7 +3,7 @@ m3u8 - + diff --git a/src/res/hls.ts b/src/res/hls.ts index 05d5cd8..5795c63 100644 --- a/src/res/hls.ts +++ b/src/res/hls.ts @@ -1,6 +1,6 @@ function showMessage(message: string) { let messageElement = document.getElementById('message') as HTMLParagraphElement - messageElement.innerHTML = message + messageElement.innerText = message messageElement.hidden = false document.getElementById('video').hidden = true }