Yout.com High-Quality Video Downloader Unlocker

This script unlocks the download buttons for 720p and 1080p videos on Yout.com, allowing all users to download high-quality YouTube videos without a paid membership.

当前为 2024-08-09 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name:zh-TW      Yout.com 高畫質影片下載解鎖器
// @name            Yout.com High-Quality Video Downloader Unlocker
// @namespace       com.sherryyue.youcomunlock
// @version         0.4
// @description:zh-TW     此腳本解鎖 Yout.com 上的 720p 和 1080p 影片下載按鈕,讓所有用戶無需付費會員即可下載高畫質的 YouTube 影片。
// @description     This script unlocks the download buttons for 720p and 1080p videos on Yout.com, allowing all users to download high-quality YouTube videos without a paid membership.
// @author          SherryYue
// @copyright       SherryYue
// @license         MIT
// @match           *://yout.com/video/*
// @contributionURL https://sherryyuechiu.github.io/card
// @supportURL      [email protected]
// @icon            https://sherryyuechiu.github.io/card/images/logo/maskable_icon_x96.png
// @supportURL      "https://github.com/sherryyuechiu/GreasyMonkeyScripts/issues"
// @homepage        "https://github.com/sherryyuechiu/GreasyMonkeyScripts"
// @grant           none
// ==/UserScript==

(function () {
  'use strict';

  var breakRestriction = () => {
    // replace to other content
    let $keyArea = document.querySelector(".recorder-action");
    $keyArea.innerHTML = `
<button class="btn btn-primary btn-block btn-yout btn-recorder">
    <span class="record-circle"></span> 開始轉換 <b class="recorder-type"></b>
</button>
<a href="#" class="btn btn-danger btn-block btn-yout btn-reload hidden">影片似乎有毀損。</a>
<div class="text-center accept-terms">玥餅已經幫您解鎖此按鈕</div>
<div class="after-record alert alert-success hidden"><h3>您的格式转换即将开始。如果您喜欢 Yout.com,请告诉您的朋友。</h3></div>
<p class="text-center my-own hidden"><u>广告:</u>使用<a href="/go/pdf" rel="noopener noreferrer nofollow" target="_blank">PDF.to</a>转换 PDF。</p>
<p class="text-center my-own hidden"><u>广告:</u>查看<a href="/go/carros" rel="noopener noreferrer nofollow" target="_blank">Carros.com</a>购买和出售车辆。</p>
<p class="text-center my-own hidden"><u>广告</u>:对于网站托管去<a href="/go/hosting/" rel="nofollow" target="_blank">这里</a></p>
`;
  }

  let observer = new MutationObserver((mutations, obs) => {
    let $keyArea = document.querySelector(".recorder-action");
    if ($keyArea?.querySelector('.alert-warning')) breakRestriction();
  });

  observer.observe(document.querySelector(".recorder-action"), {
    childList: true,
    subtree: true
  });
})();