2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

CATALOG.md: add HBO Max

From https://github.com/nativefier/nativefier/issues/1153#issuecomment-840697278
This commit is contained in:
Ronan Jouchet 2021-05-13 22:51:08 -04:00
parent 668ca723dc
commit 0216d4f9c4

View File

@ -42,6 +42,17 @@ nativefier 'https://www.udemy.com/'
Note: most videos will work, but to play some DRMed videos you must pass `--widevine` AND [sign the app](https://github.com/nativefier/nativefier/issues/1147#issuecomment-828750362). Note: most videos will work, but to play some DRMed videos you must pass `--widevine` AND [sign the app](https://github.com/nativefier/nativefier/issues/1147#issuecomment-828750362).
## HBO Max
```sh
nativefier 'https://play.hbomax.com/'
--widevine
--enable-es3-apis
&& python -m castlabs_evs.vmp sign-pkg 'name_of_the_generated_hbo_app'
```
Note: as for Udemy, `--widevine` + [app signing](https://github.com/nativefier/nativefier/issues/1147#issuecomment-828750362) is necessary.
## Spotify ## Spotify
```sh ```sh
@ -60,8 +71,10 @@ function dontShowBrowserNoticePage() {
const browserNotice = document.getElementById('browser-support-notice'); const browserNotice = document.getElementById('browser-support-notice');
console.log({ browserNotice }) console.log({ browserNotice })
if (browserNotice) { if (browserNotice) {
// when Spotify displays the browser notice, it's not just the notice, but the entire page is focused on not allowing you to proceed. // When Spotify displays the browser notice, it's not just the notice,
// So in this case, we hide the body element (so nothing shows) until the JS can delete the service worker and reload (which will actually load the player) // but the entire page is focused on not allowing you to proceed.
// So in this case, we hide the body element (so nothing shows)
// until our JS deletes the service worker and reload (which will actually load the player)
document.getElementsByTagName('body')[0].style.display = 'none'; document.getElementsByTagName('body')[0].style.display = 'none';
} }
} }
@ -102,10 +115,7 @@ if (document.readyState === "interactive") {
``` ```
- It is also required to [sign the app](https://github.com/nativefier/nativefier/blob/master/docs/api.md#widevine), or many songs will not play. - It is also required to [sign the app](https://github.com/nativefier/nativefier/blob/master/docs/api.md#widevine), or many songs will not play.
- The [icon](https://github.com/nativefier/nativefier/blob/master/docs/api.md#icon) also needs to be changed manually.
- To hide all download links (as if you were in the actual app), [inject](https://github.com/nativefier/nativefier/blob/master/docs/api.md#inject) the following CSS as `spotify.css`: - To hide all download links (as if you were in the actual app), [inject](https://github.com/nativefier/nativefier/blob/master/docs/api.md#inject) the following CSS as `spotify.css`:
```css ```css
a[href="/download"] { a[href="/download"] { display: none; }
display: none;
}
``` ```