UnsafeYT Decoder

A script to process visually and auditory scrambled YouTube videos into a human understandable format, but slightly more optimized. Now also decoding hover previews and embedded videos. Includes an aggressive audio compressor to limit loud noises.

当前为 2025-11-14 提交的版本,查看 最新版本

作者
ElectroKnight22
评分
0 0 0
版本
1.1.1
创建于
2025-09-16
更新于
2025-11-14
大小
39.3 KB
许可证
MIT
适用于

This script is an optimized version of the ChatGPT port by BESTBOIII.

Key Features & Optimizations

✨ Visual & Audio Enhancements

  • Superior Video Quality: Switched from nearest-neighbor to linear sampling and implemented a 16-pass Gaussian anti-aliasing. This results in a much smoother and cleaner image, especially on low-quality or visually noisy videos.
  • Dynamic Audio Compression: Integrated a custom audio compressor to normalize loudness. Say goodbye to sounds that are too quiet to hear or so loud they hurt your ears.
  • Seamless Playback: The original scrambled video is now completely hidden while the processed version streams, ensuring a clean viewing experience.
  • Stereo Audio: Exactly just that. The script would try to process the audio data into a stereo stream if possible.

🚀 Performance & Functionality

  • Instant Processing: Sped up video processing to be almost instant, often before the rest of the YouTube UI has even finished loading.
  • Hover Preview Processing: Now processes video previews when you hover over thumbnails by fetching tokens directly through YouTube's API.
  • Embedded Video Processing: Now processes YouTube videos that are embedded in other websites, such as Reddit, Discord (requires the browser version or a modded client), and more.
  • Massively Improved Performance: Replaced inefficient polling checks (setInterval) with modern, passive event listeners, drastically reducing the script's resource consumption.
  • Added support for the (no-cookie) variant of YouTube.
  • Has explicit support for the mobile site (m.youtube.com).
  • May work on embedded YouTube videos on external sites. (Untested)

User Instructions:

In case you are unfamiliar with userscripts and are trying to run this script, here are the simple step-by-step instructions:

  1. Download a script manager extension. Usually Tampermonkey or ScriptCat for Google Chrome, Stay for Safari, and Violentmonkey for other browsers such as Edge or Firefox. (See this documentation by 𝖢𝖸 𝖥𝗎𝗇𝗀 for a more detailed explanation.)
  2. If you are using Google Chrome, you NEED TO enable the option named **Allow User Scripts** inside of your browser's extension settings (chrome://extensions/). Not doing so would make Chrome block all scripts from running from that extension.
  3. Download this, or any other script, from a reputable site. Then your extension should detect and install the script automatically. (This part can also be done manually through uploading files or copy-pasting code.)
  4. PROFIT! Usually at this point the script should work as soon as you refresh or load into a new page.
🔧 Troubleshooting Guide:

If this script is not working and you are running this for the first time, you should try to:

  1. Check if the script is installed and enabled inside your script manager extension.
  2. Check if the **Allow User Scripts** is enabled inside your browser's extension settings.
  3. Make sure you are on the website that the script targets. (For example, this script targets youtube.com so it will not activate anywhere else.)
  4. Reinstall the script. (This shouldn't be needed but really doesn't take very long and could help if you accidentally broke the script somehow.)
  5. Write a comment/review/bug-report.

A Word of Warning:

Other than for technical research, hobbyist tinkering, or private storage reasons, I do not see any reasonable situations where this tool can be used for a fully legal purpose. These legitimate uses inherently involve private data and would not require making the videos publicly viewable on a platform like YouTube. The moment such content is made public, even in a scrambled form, it implies an intent for wider distribution, which would immediately warrant legal skepticism.

The primary reason to obfuscate public video data—a process this tool is designed to reverse, and NOT perform—is to circumvent platform rules or local laws. That is usually done to gain access to content that is otherwise prohibited, whether due to copyright claims, regional restrictions, or violations of content policy. Using this script for that purpose is therefore a direct circumvention of YouTube's technological protection measures, an explicit violation of their Terms of Service. Depending on the content and your location, this act may also put you in conflict with specific laws, such as the Digital Millennium Copyright Act (DMCA) in the US.

This is a practical warning, not an ethical argument. There are certainly valid ethical reasons to circumvent censorship, such as defending free speech or ensuring public access to vital information. However, it's crucial to understand that platform TOS and legal systems are not designed to weigh individual ethical justifications; they are sets of rules applied broadly. Therefore, even if your motives are ethically sound, the act of circumvention itself will almost certainly still be treated as a violation by the platform and potentially by legal authorities.

Ultimately, the choice and the consequences are yours. While the risk of purely decoding uploaded content is much smaller than that of uploading disallowed content, the risks are nonetheless present. Potential risks include, but are not limited to, the termination of your YouTube account, an IP ban from the service, or in more severe cases, legal action from copyright holders or authorities. You are solely responsible for your actions while using this script. Use it at your own discretion and entirely at your own risk.