wvg/README.md

51 lines
1.4 KiB
Markdown
Raw Normal View History

2024-04-08 22:58:09 +00:00
## WVGuesserExtension
### Instalation
2024-04-09 00:40:43 +00:00
1. Setup [Guesser API](https://github.com/nilaoda/WVCore.Server) ([Guide](https://github.com/nilaoda/Blog/discussions/58#discussioncomment-9052557))
2024-04-08 22:58:09 +00:00
2. Install extension
* Firefox
2024-04-11 17:07:41 +00:00
1\. Navigate to `about:debugging#/runtime/this-firefox`
2024-04-08 22:58:09 +00:00
2024-04-11 17:07:41 +00:00
2\. Load temporary addon
2024-04-08 22:58:09 +00:00
* Chrome
2024-04-10 19:45:12 +00:00
2024-04-11 17:07:41 +00:00
1\. Navigate to `chrome://extensions/`
2024-04-10 19:45:12 +00:00
2024-04-11 17:07:41 +00:00
2\. Load unpacked
2024-04-08 22:58:09 +00:00
2024-04-10 19:45:12 +00:00
* Kiwi Browser(Android) NOTE:Remote API needed; Not work with Termux for now
2024-04-11 17:07:41 +00:00
1\. Navigate to ︙ --> Extensions
2024-04-10 19:45:12 +00:00
2024-04-11 17:07:41 +00:00
2\. \+(from .zip/.crx/.user.js)
2024-04-10 19:45:12 +00:00
2024-04-09 00:40:43 +00:00
### Demo
[demo.webm](https://github.com/FoxRefire/wvg/assets/155989196/f2f41e88-1fc5-4954-89d4-3dc4552258e2)
2024-04-08 22:58:09 +00:00
### Todo
* Improve UI
### Disclaimer
This extension is for educational and researchment purpose.
Only use it for content for which you own the rights and do not use it for piracy purposes.
2024-04-11 17:06:46 +00:00
### How it works?
![diagram drawio](https://github.com/FoxRefire/wvg/assets/155989196/d1196125-ab07-4f5a-baed-c60d8c47bceb)
1. inject.js injected by content.js gets Widevine PSSH by hooking EME.
2. background.js fetches POST URLs/Headers
3. PSSHs will passed by this route inject.js-->content.js-->background.js-->popup.js
4. PSSHs+URLs+Headers will passed by this route background.js-->popup.js
5. popup.js will contols UI(popup.html)
6. User input into UI
7. popup.js sends key request to Guesser API