// ==UserScript== // @name Download Audio & Video for YouTube v3.0 (FHD, MP3, FLV, WKV, etc) - Saveclipbro.com (No Ads!) // @description This script helps to add a download button. Saveclipbro.com features the fastest ways to download YouTube videos and audios, ensuring quality. // @namespace https://greasyfork.org/ // @homepageURL https://greasyfork.org/scripts/34613 // @supportURL https://greasyfork.org/scripts/34613/feedback // @author Punisher // @version 3.0 // @date 2018-07-01 // @compatible chrome // @compatible firefox // @compatible opera // @compatible safari // @license CC BY-NC-ND 4.0 International. https://creativecommons.org/licenses/by-nc-nd/4.0/ // @match *://www.youtube.com/* // @downloadURL none // ==/UserScript== if("undefined" == typeof (punisher)) { var punisher = { userUrl: 'http://saveclipbro.com/convert?linkToDownload=', currentMediaUrl: null, getParam : function (document, variable){ var query = document.location.search.substring(1); var vars = query.split("&"); for (var i=0;i Download'+ div_embed.innerHTML; } else if(document.getElementById('watch8-sentiment-actions')) { var div_embed = document.getElementById('watch8-sentiment-actions'); var buttonclass = "yt-uix-button yt-uix-button-default yt-uix-tooltip"; var spanclass = "yt-uix-button-group"; div_embed.innerHTML = '' + div_embed.innerHTML; } }, onPageLoad : function() { if(document.body && document.domain == 'www.youtube.com') { setInterval(punisher.check, 1300); punisher.check(); } }, check: function() { if(punisher.currentMediaUrl != document.URL && typeof ytplayer != 'undefined' && ytplayer) { punisher.currentMediaUrl = document.URL; if(document.getElementById('punisher')) { document.getElementById('punisher').outerHTML=""; } } if(!document.getElementById('punisher') && typeof ytplayer != 'undefined' && ytplayer) { punisher.addButtons(document); } }, }; } punisher.init();