304 karma · joined Oct 30, 2017 (9y ago) · 37 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
PoToken - Proof of origin token which Google has lately been enforcing for all clients, or video requests will fail with a 403. On android it uses DroidGuard, for IOS, it uses built in app integrity apis. For the web it requires that you run a snippet of javascript code (the challenge) in the browser to prove that you are not a bot. Previously, you needed an external tool to generate these PoTokens but with the Deno change yt-dlp should be capable of producing these tokens by itself in the near future.
SABR - Server side adaptive bitrate streaming, used alongside Google's UMP protocol to allow the server to have more control over buffering, given data from the client about the current playback position, buffered ranges, and more. This technology is also used to do server-side ad injection. Work is still being done to make 3rd party clients work with this technology (sometimes works, sometimes doesn't).
Nsig/sig extraction example:
- https://github.com/yt-dlp/yt-dlp/blob/4429fd0450a3fbd5e89573...
- https://github.com/yt-dlp/yt-dlp/blob/4429fd0450a3fbd5e89573...
PoToken generation:
- https://github.com/yt-dlp/yt-dlp/wiki/PO-Token-Guide
- https://github.com/LuanRT/BgUtils
SABR:
- https://github.com/LuanRT/googlevideo
EDIT2: Addeded more links to specific code examples/guides
comment 2y ago · link · parent
comment 2y ago · link · parent
I don't know what to say but to encourage everyone to make some noise. Please let your representative know about this. Hopefully we can still put a stop to this before it's too late.
comment 2y ago · link · parent
comment 2y ago · link · parent
However, there are ways to download Youtube videos without installing a native app. For example, it is possible to use a library like Youtube.js [0] to make a browser extension that downloads Youtube videos directly. You won't find those on Google's web store due to policy, but you can find a handful on Github.
comment 2y ago · link · parent
comment 2y ago · link · parent
It would be cool to compare with other, non sci-fi stories. EG: I have been noticing the rise of escapist fantasy narratives in popular media — wish fulfillment stories where a Mary Sue like main character rises above all challenges without struggle. You can see this particularly in light novels, manga, and anime in the now popularized "isekai", "cultivation", or "system progression" genres. It would be interesting to find out how the public's fascination with these types of stories correlate with economic, social, or political undulations in the real world.
comment 2y ago · link · parent
1. Browser extension has a wildcard pattern for content script.
2. Content script passes postMessage messages to the background script using sendMessage.
3. Background script passes the message to native application using sendNativeMessage.
4. Native application handles the message dangerously, leading to code execution.
Requirement 2 seems to be the most important. postMessage messages should never be passed to sendMessage raw without validation. Fortunately, this should be a rare occurrence in the wild. It only provides very specific benefits to use postMessage in an extension to begin with, and developers who do need to use it are more likely to be aware of the potential vulnerability.
comment 2y ago · link · parent
comment 2y ago · link · parent
This and other inconveniences motivated me to make a browser extension to fix bad video players on the internet. It works by replacing the video player with a custom one. It also allows me to see what the manifest URL is and what headers it uses so I can copy it over to VLC if I need to.
The extension is available on Github, you can find it here
comment 2y ago · link · parent
That said, I find it reasonable to think that children may have an underdeveloped capacity to understand sophisticated phenomena such as social norms. I remember that I didn't truly understand the dynamic nature of social norms till middle school. Children can be quite trusting when it comes to moral instruction. In that sense, perhaps one can justify "sanitizing" stories for an audience with impaired discernment.
comment 2y ago · link · parent
comment 2y ago · link · parent
I thought it was suspicious and junked the email. It didn't seem any different from the other spam emails I got from scammers.
comment 2y ago · link · parent
> “As a science fiction writer who began as a fan, I do not use my fiction as a disguised way to criticize the reality of the present.”
Given that the author lives under an authoritarian government, I'm not sure if Liu's words should be taken at face value. But officially, a political interpretation of the book wouldn't be the authors intention.
21.
Show HN: Eliminate video buffering with a Chrome extension(faststream.online ↗)
5 points · by Andrews54757 · 2y ago · discuss
comment 2y ago · link · parent
comment 3y ago · link · parent
[1] https://developer.mozilla.org/en-US/docs/Web/API/Battery_Sta...
comment 3y ago · link · parent
Beyond that, the File System API would also allow for streamed downloads directly from the web-app. This would allow for web-apps to generate large download files without having to store a copy on a database (external server or IndexedDB), which is a privacy improvement. The only way to do this now is by using convoluted techniques to essentially do a MITM to a fake endpoint [1].
comment 3y ago · link · parent
To me, FastStream is just a fun hobby project, not a product. I intend to always keep it free without unnecessary bloat or spyware of any kind. So, I don't really have a desire for it to be "successful" beyond it being immediately useful to me and a couple of my friends.
comment 3y ago · link · parent
EDIT: It seems like Firefox has some special unsafe eval rule breaking dash.js
EDIT2: Problem was actually FF's sendMessage not toString()'ing URL objects. I've fixed it in V1.2.1 for FF (approval by mozilla pending)
EDIT3: V1.2.1 (Firefox hotfix) is available now
comment 3y ago · link · parent
[1] https://github.com/LuanRT/YouTube.js
[2] https://github.com/Andrews54757/FastStream
[3] Chrome (also available for Firefox): https://chromewebstore.google.com/u/1/detail/faststream-vide...
comment 3y ago · link · parent
comment 3y ago · link · parent
It's pretty easy to circumvent this method, but honestly the user shouldn't have to configure their browsers to be resistant to anti-debugging. From the side of the website, it should be impossible to know if the debug tools are just open.