NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

YOUTUBE MP3 MÜZİK İNDİRME SCRİPTİ 1

KANALIN KRALI YOYUBE KANALIMIZ : https://www.youtube.com/channel/UC4jY6sazFWsQaqLPIZXXSbA
KANALIN KRALI BLOG SAYFAMIZ : https://aliosmandinke-kanalinkrali.blogspot.com/

SIMPLE YOUTUBE MP3 BUTTON

// ==UserScript==
// @name Simple YouTube MP3 Button
// @namespace https://www.youtubeinmp3.com
// @version 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*://*.youtu.be/*
// @include http*://youtu.be/*
// @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"));

if(typeof(document.getElementById("iframeDownloadButton")) != 'undefined' && document.getElementById("iframeDownloadButton") !== null){

document.getElementById("iframeDownloadButton").remove();

}

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 = '//www.convertmp3.io/widget/button/?color=ba1717&video=' + window.location.href;

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

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

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

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

targetElement[i].insertBefore(addIframe, targetElement[i].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[i].className.indexOf("ytd-video-secondary-info-renderer") > -1){

targetElement[i].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[ws"'-=]+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[i].id=='watch7-container' ||
mutation.addedNodes[i].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 = '//www.convertmp3.io/widget/button/?color=ba1717&amp;video=' + 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();

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.