Greasy Fork is available in English.

YouTube™ Multi Downloader v8.6 (Relaunched) 🚀💯 - TubeMP3.to (NO ADS & NEW LAYOUT FOR YT! 🚫🤩)

This script adds a download button, a faster way to download audio from YouTube and with guaranteed quality. This site is very simple, fast and effective to download! Best of all!

< Spätná väzba na YouTube™ Multi Downloader v8.6 (Relaunched) 🚀💯 - TubeMP3.to (NO ADS & NEW LAYOUT FOR YT! 🚫🤩)

Hodnotenie: Dobré - skript funguje

§
Pridaný: 02.06.2021

Fixed layout:


(function() {
if (document.getElementById("browser-app") || document.getElementById("masthead") || window.Polymer) {
setInterval(function() {
if (window.location.href.indexOf("watch?v=") < 0) {
return false;
}
if (document.getElementById("meta-contents") && document.getElementById("punisher") === null) {
AddYT();
}
}, 1);

const setElement = function(url) {
var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
var match = String(url).match(regExp);
return (match&&match[7].length==11)? match[7]: false;
};
}

function AddYT() {
var buttonDiv = document.createElement("span");
buttonDiv.id = "punisher";
buttonDiv.style.width = "100%";
buttonDiv.style.padding = "10px 0";
var addButton = document.createElement("a");
addButton.appendChild(document.createTextNode("DOWNLOAD"));
addButton.style.cursor = "pointer";
addButton.style.height = "inherit";
addButton.style.backgroundColor = "#393939";
addButton.style.color = "#ffffff";
addButton.style.padding = "10px 22px";
addButton.style.margin = "0px 0px";
addButton.style.border = "0";
addButton.style.borderRadius = "2px";
addButton.style.fontSize = "1.4rem";
addButton.style.height = "1.6rem";
addButton.style.fontFamily = "inherit";
addButton.style.textAlign = "center";
addButton.style.display = "flex";
addButton.style.alignItems = "center";
addButton.style.textDecoration = "none";
addButton.href = "//yt1s.com/?q=" + encodeURIComponent(location.href);
addButton.target = "_blank";
buttonDiv.appendChild(addButton);
var targetElement = document.querySelectorAll("[id='subscribe-button']");
if(targetElement){
for(var i = 0; i < targetElement.length; i++){
if(targetElement[i].className.indexOf("ytd-video-secondary-info-renderer") > -1){
targetElement[i].style.display = "flex";
targetElement[i].style.alignItems = "center";
targetElement[i].style.flexDirection = "row-reverse";
targetElement[i].appendChild(buttonDiv);
}
}
}
var descriptionBox = document.querySelectorAll("ytd-video-secondary-info-renderer");
if(descriptionBox[0].className.indexOf("loading") > -1){
descriptionBox[0].classList.remove("loading");
}
}
})();

PunisherAutor
§
Pridaný: 08.06.2021

😊

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.