NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

YOUTUBE DÖNÜŞTÜRÜCÜ VE İNDIRICI TAMPERMONKEY SCRİPT
MP3, MP4 VE 'DIĞER' (ÇOKLU FORMAT SEÇENEKLERI) INDIRME DÜĞMELERINI YOUTUBE VIDEOLARıNA EKLER
KANALIN KRALI YOUTUBE KANALIMIZI ZİYARET EDİN

// ==UserScript==
// @name YouTube Converter and Downloader
// @version 1.3
// @date 2018-12-27
// @description Adds MP3, MP4 and 'Other' (multiple format options) download buttons to YouTube videos
// @author SirLoinOfBeef
// @copyright 2018, SirLoinOfBeef
// @compatible chrome
// @compatible firefox
// @compatible opera
// @compatible safari
// @license MIT https://opensource.org/licenses/MIT
// @match *://*.youtube.com/*
// @match *://*.saveclipbro.com/*
// @namespace https://greasyfork.org/users/216347
// ==/UserScript==

(function() {
'use strict';

if (window.location.href.indexOf("saveclipbro.com/conversion-download") > 0) {
var DURL = document.getElementsByClassName("btn btn-download")[1].href;
window.location.replace(DURL);
}

if (window.location.href.indexOf("DLOADMP3") > 0 || window.location.href.indexOf("DLOADMP4") > 0){
SetType();
}

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("distillvideo") === null) {
Addytpolymer('MP3');
Addytpolymer('MP4');
Addytpolymer('?');
}
}, 100);
} else {
setInterval(function() {
if (window.location.href.indexOf("watch?v=") < 0) {
return false;
}
if (document.getElementById("watch7-subscription-container") && document.getElementById("distillvideo") === null) {
AddhtmlDV();
}
}, 100);
}

function SetType(){
if (document.getElementById("convert-to-audio-mp3") === null) {
setTimeout(SetType, 1000);
}else{
if (window.location.href.indexOf("DLOADMP3") > 0){
document.getElementById("convert-to-audio-mp3").click();
}else if(window.location.href.indexOf("DLOADMP4") > 0){
document.getElementById("convert-to-video-mp4").click();

}
}
}


function AddhtmlDV() {
if (document.getElementById("watch7-subscription-container")) {
var wrap = document.getElementById('watch7-subscription-container');
var button = "<div id='distillvideo' style='display: inline-block; margin-left: 10px; vertical-align: middle;'>";
button += "<a href="https://www.saveclipbro.com/convert?main_search%5BlinkToDownload%5D=" + encodeURIComponent(document.URL) + '&main_search%5Bsubmit%5D=' + "" title="Download" target="_blank"" +
"style="display: inline-block; font-size: inherit; height: 22px; border: 1px solid rgb(0, 183, 90); border-radius: 3px; padding-left: 28px; cursor: pointer; vertical-align: middle; position: relative; line-height: 22px; text-decoration: none; z-index: 1; color: rgb(255, 255, 255);">";
button += "<i style="position: absolute; display: inline-block; left: 6px; top: 3px; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIiB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGlkPSJzdmcyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNIDQsMCA0LDggMCw4IDgsMTYgMTYsOCAxMiw4IDEyLDAgNCwwIHoiIGZpbGw9IiNmZmZmZmYiIC8+PC9zdmc+); background-size: 12px; background-repeat: no-repeat; background-position: center center; width: 16px; height: 16px;"></i>";
button += "<span style="padding-right: 12px;">Download</span></a></div>";
var style = "<style>#distillvideo button::-moz-focus-inner{padding:0;margin:0}#distillvideo a{background-color:#15388c}#distillvideo a:hover{background-color:#E91E63}#distillvideo a:active{background-color:rgb(0, 151, 74)}</style>";
var tmp = wrap.innerHTML;
wrap.innerHTML = tmp + button + style;
}
}

function Addytpolymer(ButtLabel) {
var buttonDiv = document.createElement("span");
buttonDiv.style.width = "100%";
buttonDiv.style.color = "#15388c";
buttonDiv.id = "distillvideo";
var addButton = document.createElement("a");
addButton.appendChild(document.createTextNode(ButtLabel));
addButton.style.width = "100%";
addButton.style.backgroundColor = "#15388c";
addButton.style.color = "white";
addButton.style.textAlign = "center";
addButton.style.padding = "5px 10px";
addButton.style.margin = "0px 10px";
addButton.style.fontSize = "14px";
addButton.style.border = "0";
addButton.style.cursor = "pointer";
addButton.style.borderRadius = "2px";
addButton.style.fontFamily = "Roboto, Arial, sans-serif";
addButton.style.textDecoration = "none";
addButton.href = "https://www.saveclipbro.com/convert?main_search%5BlinkToDownload%5D=" + encodeURIComponent(document.URL) + '&main_search%5Bsubmit%5D=&convert-to-video-mp4%5D=&DLOAD' + ButtLabel;
addButton.target = "_blank";
if (ButtLabel == 'MP3'){
buttonDiv.style.padding = "0px 0px 0px 20px";
//buttonDiv.appendChild(document.createTextNode(' Download:' ))
}
buttonDiv.appendChild(addButton);
var targetElement = document.querySelectorAll("[id='count']");
for (var i = 0; i < targetElement.length; i++) {
if (targetElement[i].className.indexOf("ytd-video-primary-info-renderer") > -1) {
targetElement[i].appendChild(buttonDiv);
}
}
}


})();
     
 
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.