🔒 Closed Love downloading mp3 music. baka makatulong :) :) pasok na

Status
Not open for further replies.
MAKE DOWNLOADING MP3 Easier in just few clicks. :) :)

FIRST DOWNLOAD TAMPERMONKEY extention and install it.

upload_2017-9-4_19-25-26.webp
Click the Extention of TAMPERMONKEY then click create a new script.

delete nyo lahat ng laman. ng new script. then paste nyo tong Jscript na nasa baba
// ==UserScript==
// name Simple YouTube MP3 Button
// @namespace You do not have permission to view the full content of this post. Log in or register now.
// @version 1.1.2.1
// @description Adds a download button to YouTube videos which allows you to download the MP3 of the video without having to leave the page
// @author Arari
// @include http*://*.youtube.com/*
// @include http*://youtube.com/*
// @include http*://*.phc.onl/#forbidden#/*
// @include http*://phc.onl/#forbidden#/*
// RUN-at document-end
// ==/UserScript==

function polymerInject(){

/* Create button */
var buttonDiv = document.createElement("div");
buttonDiv.style.width = "100%";
buttonDiv.id = "parentButton";

var addButton = document.createElement("button");
addButton.appendChild(document.createTextNode("Download MP3"));

addButton.style.width = "100%";
addButton.style.backgroundColor = "#181717";
addButton.style.color = "white";
addButton.style.textAlign = "center";
addButton.style.padding = "10px 0";
addButton.style.marginTop = "5px";
addButton.style.fontSize = "14px";
addButton.style.border = "0";
addButton.style.cursor = "pointer";
addButton.style.borderRadius = "2px";
addButton.style.fontFamily = "Roboto, Arial, sans-serif";

addButton.onclick = function () {

this.remove();

/* Add large button on click */
var addIframe = document.createElement("iframe");
addIframe.src = '//You do not have permission to view the full content of this post. Log in or register now.' + window.location.href;

addIframe.style.width = "100%";
addIframe.style.height = "60px";
addIframe.style.marginTop = "10px";
addIframe.style.overflow = "hidden";
addIframe.scrolling = "no";

var targetElement = document.querySelectorAll("[id='meta']");

for(var i = 0; i < targetElement.length; i++){

if(targetElement.className.indexOf("ytd-watch") > -1){

targetElement.insertBefore(addIframe, targetElement.childNodes[0]);

}

}

};

buttonDiv.appendChild(addButton);

/* Find and add to target */
var targetElement = document.querySelectorAll("[id='subscribe-button']");

for(var i = 0; i < targetElement.length; i++){

if(targetElement.className.indexOf("ytd-video-secondary-info-renderer") > -1){

targetElement.appendChild(buttonDiv);

}

}

/* Fix hidden description bug */
var descriptionBox = document.querySelectorAll("ytd-video-secondary-info-renderer");
if(descriptionBox[0].className.indexOf("loading") > -1){

descriptionBox[0].classList.remove("loading");

}

}

function standardInject() {
var pagecontainer=document.getElementById('page-container');
if (!pagecontainer) return;
if (/^https?:\/\/www\.youtube.com\/watch\?/.test(window.location.href)) run();
var isAjax=/class[\w\s"'-=]+spf\-link/.test(pagecontainer.innerHTML);
var logocontainer=document.getElementById('logo-container');
if (logocontainer && !isAjax) { // fix for blocked videos
isAjax=(' '+logocontainer.className+' ').indexOf(' spf-link ')>=0;
}
var content=document.getElementById('content');
if (isAjax && content) { // Ajax UI
var mo=window.MutationObserver||window.WebKitMutationObserver;
if(typeof mo!=='undefined') {
var observer=new mo(function(mutations) {
mutations.forEach(function(mutation) {
if(mutation.addedNodes!==null) {
for (var i=0; i<mutation.addedNodes.length; i++) {
if (mutation.addedNodes.id=='watch7-container' ||
mutation.addedNodes.id=='watch7-main-container') { // old value: movie_player
run();
break;
}
}
}
});
});
observer.observe(content, {childList: true, subtree: true}); // old value: pagecontainer
} else { // MutationObserver fallback for old browsers
pagecontainer.addEventListener('DOMNodeInserted', onNodeInserted, false);
}
}
}

function onNodeInserted(e) {
if (e && e.target && (e.target.id=='watch7-container' ||
e.target.id=='watch7-main-container')) { // old value: movie_player
run();
}
}

function finalButton(){

var buttonIframeDownload = document.createElement("iframe");
buttonIframeDownload.src = '//You do not have permission to view the full content of this post. Log in or register now.' + window.location.href;
buttonIframeDownload.id = "buttonIframe";

buttonIframeDownload.style.width = "100%";
buttonIframeDownload.style.height = "60px";
buttonIframeDownload.style.paddingTop = "20px";
buttonIframeDownload.style.paddingBottom = "20px";
buttonIframeDownload.style.overflow = "hidden";
buttonIframeDownload.scrolling = "no";

document.getElementById("watch-header").appendChild(buttonIframeDownload);

}

function run(){

if(!document.getElementById("parentButton") && window.location.href.substring(0, 25).indexOf("youtube.com") > -1 && window.location.href.indexOf("watch?") > -1){

var parentButton = document.createElement("div");

parentButton.className = "yt-uix-button yt-uix-button-default";
parentButton.id = "parentButton";

parentButton.style.height = "23px";
parentButton.style.marginLeft = "28px";
parentButton.style.paddingBottom = "1px";

parentButton.onclick = function () {

this.remove();
finalButton();

};

document.getElementById("watch7-user-header").appendChild(parentButton);

var childButton = document.createElement("span");
childButton.appendChild(document.createTextNode("Download MP3"));
childButton.className = "yt-uix-button-content";

childButton.style.lineHeight = "25px";
childButton.style.fontSize = "12px";

parentButton.appendChild(childButton);

}

}

if(document.getElementById("polymer-app") || document.getElementById("masthead") || window.Polymer){

setInterval(function(){

if(window.location.href.indexOf("watch?v=") < 0){

return false;

}

if(document.getElementById("count") && document.getElementById("parentButton") === null){

polymerInject();


}

}, 100);

}

else{

standardInject();

}



OPEN YOUTUBE tapos sa bandang baba ng video makikita nyo to. sa ilalim ng subcription click nyo lang yung download mp3.
upload_2017-9-4_19-27-37.webp7
after nyo sya i click lalabas na yung image
upload_2017-9-4_19-28-28.webp
click nyo lang yung image ng Download mp3 sa baba ng video.
upload_2017-9-4_19-29-1.webp
Automatic na yan. sana po makatulong. sa may mga paraan na mas madali mag download share nyo lang yung link nyo sa comment box. share share din ng idea haha.
 

Attachments

  • upload_2017-9-4_19-22-29.webp
    upload_2017-9-4_19-22-29.webp
    62.6 KB · Views: 10
Status
Not open for further replies.

About this Thread

  • 7
    Replies
  • 241
    Views
  • 6
    Participants
Last reply from:
mhavhenn

Trending Topics

Online now

Members online
1,268
Guests online
3,870
Total visitors
5,138

Forum statistics

Threads
2,288,123
Posts
29,049,181
Members
1,214,920
Latest member
Spymaker86
Back
Top