From 6717f2ed59fbb159509a70ef69f15c0f2c26a4e9 Mon Sep 17 00:00:00 2001 From: Zhihua Lai Date: Sun, 28 Jun 2026 22:21:36 +0100 Subject: [PATCH] v3.2.0 --- .gitattributes | 32 + .gitignore | 32 +- README.md | 29 +- package-lock.json | 4 +- package.json | 2 +- video-url-parser/_locales/de_DE/messages.json | 18 +- video-url-parser/_locales/en/messages.json | 18 +- video-url-parser/_locales/en_GB/messages.json | 18 +- video-url-parser/_locales/en_US/messages.json | 18 +- video-url-parser/_locales/es_SP/messages.json | 18 +- video-url-parser/_locales/fr_FR/messages.json | 18 +- video-url-parser/_locales/it_IT/messages.json | 18 +- video-url-parser/_locales/nl_NL/messages.json | 18 +- video-url-parser/_locales/pl_PL/messages.json | 18 +- video-url-parser/_locales/pt_BR/messages.json | 18 +- video-url-parser/_locales/ro_RO/messages.json | 18 +- video-url-parser/_locales/ru_RU/messages.json | 18 +- video-url-parser/_locales/tr_TR/messages.json | 18 +- video-url-parser/_locales/zh_CN/messages.json | 18 +- video-url-parser/_locales/zh_TW/messages.json | 18 +- video-url-parser/css/main.css | 95 +- video-url-parser/dist/dist.min.js | 1 - video-url-parser/js/background.js | 205 +- video-url-parser/js/functions.js | 48 + video-url-parser/js/getPagesSource.js | 1596 +++++----- video-url-parser/js/parsevideo.js | 94 + video-url-parser/js/popup.js | 92 +- video-url-parser/js/translate.js | 130 +- video-url-parser/js/video.js | 914 +++--- video-url-parser/lang/de-de.js | 68 +- video-url-parser/lang/en-us.js | 68 +- video-url-parser/lang/es-sp.js | 68 +- video-url-parser/lang/fr-fr.js | 68 +- video-url-parser/lang/it-it.js | 68 +- video-url-parser/lang/nl-nl.js | 68 +- video-url-parser/lang/pl-pl.js | 68 +- video-url-parser/lang/pt-br.js | 68 +- video-url-parser/lang/ro-ro.js | 68 +- video-url-parser/lang/ru-ru.js | 68 +- video-url-parser/lang/tr-tr.js | 68 +- video-url-parser/lang/zh-cn.js | 68 +- video-url-parser/lang/zh-tw.js | 68 +- video-url-parser/main.html | 211 +- video-url-parser/manifest.json | 4 +- video-url-parser/package-lock.json | 4 +- video-url-parser/package.json | 2 +- video-url-parser/some-video-sites.txt | 6 +- .../test/data/dailymotion-x2bu0q2.html | 11 + .../test/data/html-header-og-video-url.html | 2670 ++++++++--------- .../test/data/html-video-tag.html | 456 +-- video-url-parser/test/data/msdn-1.html | 2668 ++++++++-------- .../test/data/pearvideo-1050733.html | 1298 ++++---- video-url-parser/test/data/ted-1.html | 1218 ++++---- .../test/data/vimeo-151712690.html | 11 + video-url-parser/test/data/weibo-1.html | 282 +- video-url-parser/test/data/xiaokaxiu-1.html | 836 +++--- .../test/test_functions_filename.js | 72 + .../test/test_parsevideo_dailymotion.js | 30 + video-url-parser/test/test_parsevideo_m3u8.js | 25 + .../test/test_parsevideo_source_tag.js | 28 + .../test/test_parsevideo_vimeo.js | 26 + video-url-parser/tested-urls.txt | 26 +- video-url-parser/todo-urls.txt | 2 +- 63 files changed, 7558 insertions(+), 6756 deletions(-) create mode 100644 .gitattributes delete mode 100644 video-url-parser/dist/dist.min.js create mode 100644 video-url-parser/test/data/dailymotion-x2bu0q2.html create mode 100644 video-url-parser/test/data/vimeo-151712690.html create mode 100644 video-url-parser/test/test_functions_filename.js create mode 100644 video-url-parser/test/test_parsevideo_dailymotion.js create mode 100644 video-url-parser/test/test_parsevideo_m3u8.js create mode 100644 video-url-parser/test/test_parsevideo_source_tag.js create mode 100644 video-url-parser/test/test_parsevideo_vimeo.js diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4cad4f5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,32 @@ +# Normalize line endings for our own source to LF (matches .editorconfig). +# Git auto-detects text vs binary; text files are stored as LF in the repo and +# checked out as LF in the working tree. +* text=auto eol=lf + +# --- Vendored third-party libraries: keep byte-for-byte (do not touch EOLs) --- +video-url-parser/bs/** -text +video-url-parser/js/jquery-3.4.1.min.js -text +video-url-parser/js/jquery-ui.js -text +video-url-parser/js/MD5.js -text +video-url-parser/js/m_inc.js -text +video-url-parser/css/jquery-ui.css -text +*.min.js -text +*.min.css -text + +# --- Captured HTML test fixtures: data files, LF-normalized but exempt from +# whitespace linting (their internal indentation mirrors real-world pages) --- +video-url-parser/test/data/** -whitespace + +# --- Build output (also gitignored) --- +video-url-parser/dist/** -text + +# --- Binary assets (no EOL handling, no text diff) --- +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.ttf binary +*.eot binary diff --git a/.gitignore b/.gitignore index 970c183..51ad6ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,17 @@ -*.zip -node_modules/ -.vscode/ - -# Test coverage -coverage/ -.nyc_output/ - -# Logs -*.log -npm-debug.log* - -# OS files -.DS_Store -Thumbs.db - +*.zip +node_modules/ +.vscode/ + +# Test coverage +coverage/ +.nyc_output/ + +# Logs +*.log +npm-debug.log* + +# OS files +.DS_Store +Thumbs.db + dist/ \ No newline at end of file diff --git a/README.md b/README.md index 688b07b..0ecee92 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,14 @@ websites. Built and maintained by [@justyy](https://justyy.com/). ## Features - One-click detection of downloadable video URLs on the current page. -- Site-specific parsers plus generic fallbacks (`og:video` meta tags, `