puemos / hls-downloader

Web Extension for sniffing and downloading HTTP Live streams (HLS)
https://puemos.gitbook.io/hls-downloader/
MIT License
1.77k stars 228 forks source link

Impossible to install new version #316

Open trimechee opened 4 months ago

trimechee commented 4 months ago

Hello, thank you so much for this awesome downloader ! 💯 🥇 I followed the recommended procedure to install the new version : Download the zip file from the latest release (https://github.com/puemos/hls-downloader/releases) Open chrome://extensions/ Enable Developer mode Drop the zip file into the page

But i can't install the new version :(

we hope that there will be an xpi and crx version (because mercury browser based on firefox allows us to install extensions and addons outside the firefox store) and we hope the versions on firefox store and edge store and opera store will be updated soon, thank you :)

Mqxx commented 4 months ago

The zip is broken (empty) in the latest version (v4.0.0). Use this version instead: https://github.com/puemos/hls-downloader/releases/tag/v3.3.0

puemos commented 4 months ago

Did you try to download https://github.com/puemos/hls-downloader/releases/download/v4.0.0/extension-archive.zip?

Mqxx commented 4 months ago

Did you try to download https://github.com/puemos/hls-downloader/releases/download/v4.0.0/extension-archive.zip?

The downloaded zip is just empty...

puemos commented 4 months ago

Can you try this one? https://github.com/puemos/hls-downloader/releases/download/v4.0.0/extension.zip

Mqxx commented 4 months ago

This one does have a dist folder with content inside.

puemos commented 4 months ago

Great, so try dropping this into the chrome://extensions/.

Mqxx commented 4 months ago

This does not work because the contents need to be directly in the root of the zip not inside a subfolder dist.

It would be possible to extract the dist folder from the zip and load this instead...

puemos commented 4 months ago

Yes, you can also drop the dist folder directly.

Mqxx commented 4 months ago

Nope this does not work because the dist folder is not a zip. You can either load the folder via the button load unpacked extension as a folder or drag the zip where the content is located in the root direktly into the window

Mqxx commented 4 months ago

Else it does not work...

puemos commented 4 months ago

Got it, can you try to load it with "load unpacked extension" and select the dist folder?

Mqxx commented 4 months ago

This works. The browser loads the extension but then throws an error:

Manifest version 2 is deprecated, and support will be removed in 2024. See https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline for details.

{
  "manifest_version": 2,
  "name": "HLS Downloader",
  "description": "HTTP Live Stream downloader",
  "version": "4.0.0",
  "browser_action": {
    "default_popup": "popup.html",
    "default_title": "HLS Downloader"
  },
  "icons": {
    "16": "assets/icons/16.png",
    "48": "assets/icons/48.png",
    "128": "assets/icons/128.png",
    "256": "assets/icons/256.png"
  },
  "permissions": [
    "webRequest",
    "unlimitedStorage",
    "storage",
    "downloads",
    "tabs",
    "http://*/*",
    "https://*/*"
  ],
  "background": {
    "scripts": ["background.js"],
    "persistent": true
  },
  "web_accessible_resources": ["assets/**/*"],
  "content_security_policy": "script-src 'self' 'wasm-eval'; object-src 'self'"
}
Mqxx commented 4 months ago

Version https://github.com/puemos/hls-downloader/releases/tag/v3.3.0 works without any problems...

Mqxx commented 4 months ago

I think this has to do with the new policy that google introduced...

Mqxx commented 4 months ago

https://developer.chrome.com/docs/extensions/reference/manifest/content-security-policy

Mqxx commented 4 months ago

If you bump up the manifest version to version 3 this error message pops up: Invalid value for 'content_security_policy'.

trimechee commented 4 months ago

Ohh thank you @puemos and @Mqxx for your valuable explanations :)

It seems a little too complicated to install new version in chromium browsers :(....maybe on firefox and its forks like mercury browser, the installation will be simpler, or on the forks of chromium like thorium browser and uazo browser and unggogled chromium which can make possible to bypass the strict rules of chrome to install the extensions and we hope for extensions well compatible with these web browsers if chrome web store and mozilla firefox store and opera browser and microsoft edge browser does not allow installation of the new version, thank you :)

https://librewolf.net/ https://github.com/pulse-browser/browser https://github.com/dothq/browser https://floorp.app/en/ https://www.waterfox.net/ https://mullvad.net/en/browser

https://duckduckgo.com/app

https://github.com/uazo/cromite https://github.com/Alex313031/Thorium-Win

https://chromium.woolyss.com/ https://github.com/ungoogled-software/ungoogled-chromium https://github.com/textbrowser/dooble

https://whale.naver.com/en/ https://www.fenrir-inc.com/jp/sleipnir/

puemos commented 4 months ago

Yeah, the best solution is to figure out the migration to mv3.

trimechee commented 4 months ago

Great Mr @puemos , thank you so much :) 🥇

It say firefox and brave browser will keep manifest v2, so it seems we can still use manifest v2 extension with frefox and brave....

To work around problems with manifest v3 and escape censorship, perhaps it will be good idea to replace extensions with scripts:

https://openuserjs.org/ https://greasyfork.org/en https://www.userscript.zone/

or use these extensions to integrate extensions with various web browsers !

extension to integration with web browsers :

https://foxified.org/ https://crosspilot.io/ Chameleon https://chrome.google.com/webstore/detail/chameleon/dmpojjilddefgnhiicjcmhbkjgbbclob https://sereneblue.github.io/chameleon/ https://en.savefrom.net/18/user.php?vid=387 https://github.com/anime-vsub/extension-animevsub-helper/blob/main/install-on-chrome.md https://addoncrop.com/v27/ Orange Monkey script manager https://greasyfork.org/fr https://www.tampermonkey.net/scripts.php https://webextension.org/listing/download-with.html https://github.com/belaviyo/download-with/

https://github.com/FilipePS/Traduzir-paginas-web

intall outside store https://github.com/tsaost/autoload-temporary-addon https://tsaost.github.io/autoload-temporary-addon/

"The way around this is to download the Chrome extension files into a folder and then load that folder (Load unpacked) in Developer mode.

we can solve this issue very easily. Download the .crx, right click and extract by 7-zip (or rename .crx to .zip) and then load the extension as unpacked in chrome after enabling dev mode in the extensions page.

(Bonus point, loading it unpacked is more ease of mind, since the js code is not minified, you can read it in 5 minutes and know exactly what it's doing!)

Install Firefox Desktop users, download from Mozilla Addons. Mobile users You can install TWP using this alternative browser to Firefox Mobile Iceraven. Or follow this tutorial and install TWP on Firefox Nightly. Vivaldi, Opera, Maxthon, Chromium and Yandex Download this CRX file TWP_Chromium.crx Open your browser's extension manager, you can find it at this link: chrome://extensions Activate developer mode Reload the extension manager page to avoid errors Drag and drop the TWP_Chromium.crx file into the extension manager Note 1: In Opera, Maxthon and Yandex you don't need to enable developer mode Note 2: In Yandex you need to reactivate the extension every time you open the browser Chrome, Edge and Brave (With folder without auto update) Download and extract this ZIP file TWP_Chromium.zip Open your browser's extension manager, you can find it at this link: chrome://extensions Activate developer mode Reload the extension manager page to avoid errors Drag and drop the TWP_Chromium folder into the extension manager Chrome, Edge and Brave (With CRX and auto update) By default, these browsers block the installation of extensions outside the official extension store, however, changing a windows registry it is possible to reverse this, allowing the installation of certain extensions. If you want to do this, follow the tutorial below: Download this and run this file twp-registry-install.reg. It edit the necessary windows registries Close your browser and reopen it Download this CRX file TWP_Chromium.crx Open your browser's extension manager, you can find it at this link: chrome://extensions Activate developer mode Reload the extension manager page to avoid errors Drag and drop the TWP_Chromium.crx file into the extension manager Note: If you want to undo registry changes, download and run this twp-registry-uninstall-self.reg. If you want a deeper removal download and run this other file twp-registry-uninstall-all.reg "