您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
For use with: https://github.com/PXgamer/youtube-dl-php
当前为
- // ==UserScript==
- // @name [YouTube.com] youtube-dl-php - Download Button
- // @namespace PXgamer
- // @version 0.1
- // @description For use with: https://github.com/PXgamer/youtube-dl-php
- // @author PXgamer
- // @include *youtube.com/watch?v=*
- // @require https://code.jquery.com/jquery-3.1.0.min.js
- // @grant none
- // ==/UserScript==
- /*jshint multistr: true */
- (function() {
- 'use strict';
- var searchGET = '/youtube-dl-php/tests/$_GET.test.php'; // Your path to GET based implementation (i.e. /tests/$_GET.test.php)
- var vid_id = location.href.split('watch?v=')[1].split('&')[0];
- $('#watch8-secondary-actions').append('<div class="yt-uix-menu"><a target="_blank" href="'+searchGET+'?vid_id='+vid_id+'"><button class="yt-uix-button yt-uix-button-size-default yt-uix-button-opacity"><span class="yt-uix-button-content">Download/Parse Video</span></button></a></div>');
- })();