您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to open a Video download website.
// ==UserScript== // @name YouTube.com Video download helper // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description Adds a button to open a Video download website. // @author Kvali // @match https://www.youtube.com/watch* // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; function getRightControls(){ return document.getElementsByClassName('ytp-right-controls')[0]; } function download(){ var id = window.location.search.split('v=')[1]; let hrefDownload ='https://www.y2mate.com/youtube/' + id.split('&t=')[0]; window.open(hrefDownload, '_blank'); } function createButton(){ const swb = document.createElement('button'); swb.classList.add('ytp-button'); swb.classList.add('downloadBTN'); swb.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320"><rect width="100%" height="100%" fill="none"/><polyline points="86 110 128 152 170 110" fill="#fff" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/><line x1="128" y1="40" x2="128" y2="152" fill="#fff" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/><path d="M216,152v56a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V152" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="24"/></svg>`; swb.title = 'Set current playback time to URL (u)'; swb.onclick = download; return swb; } let panel = getRightControls(); panel.insertBefore(createButton(), panel.firstChild); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址