Greasy Fork is available in English.

YouTube™ Multi Downloader v9.2 🌐🚀💯 - YT1s.com (NO ADS & NEW LAYOUT FOR YT! 🚫🤩)

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

  1. // ==UserScript==
  2. // @name YouTube™ Multi Downloader v9.2 🌐🚀💯 - YT1s.com (NO ADS & NEW LAYOUT FOR YT! 🚫🤩)
  3. // @name:pt-BR YouTube™ Multi Downloader v9.2 🌐🚀💯 - YT1s.com (SEM ANÚNCIOS & NOVO LAYOUT PARA YT! 🚫🤩)
  4. // @description This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  5. // @description:pt-BR Esse script adiciona um botão de download, uma maneira mais rápida de baixar áudio e vídeo do YouTube e com qualidade garantida. Este site é muito simples, rápido e eficaz para baixar! Melhor de todos!
  6. // @description:ar This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  7. // @description:bg This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  8. // @description:cs This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  9. // @description:da This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  10. // @description:de This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  11. // @description:el This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  12. // @description:eo This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  13. // @description:es This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  14. // @description:fi This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  15. // @description:fr This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  16. // @description:fr-CA This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  17. // @description:he This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  18. // @description:hu This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  19. // @description:id This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  20. // @description:it This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  21. // @description:ja This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  22. // @description:ko This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  23. // @description:nb This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  24. // @description:nl This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  25. // @description:pl This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  26. // @description:ro This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  27. // @description:ru This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  28. // @description:sk This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  29. // @description:sr This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  30. // @description:sv This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  31. // @description:th This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  32. // @description:tr This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  33. // @description:uk This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  34. // @description:ug This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  35. // @description:vi This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  36. // @description:zh-CN This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  37. // @description:zh-TW This script adds a download button, a faster way to download audio and video from YouTube with guaranteed quality. This site is very simple, fast and effective to download! Best of all!
  38. // @namespace https://greasyfork.org/users/152924
  39. // @homepageURL https://greasyfork.org/scripts/34613
  40. // @supportURL https://greasyfork.org/scripts/34613/feedback
  41. // @author Punisher
  42. // @version 9.2
  43. // @date 2024-11-16
  44. // @icon https://i.imgur.com/InuDDVK.png
  45. // @compatible chrome
  46. // @compatible firefox
  47. // @compatible opera
  48. // @compatible safari
  49. // @compatible edge
  50. // @license CC-BY-NC-ND-4.0
  51. // @match https://*.youtube.com/*
  52. // @grant GM_addStyle
  53. // @run-at document-idle
  54. // ==/UserScript==
  55.  
  56. (function() {
  57. var punisherYT = "//yt1s.com/youtube-to-mp3?q=";
  58. var tubeID = "dwnldBtn";
  59. var currentButton = "#owner";
  60. var addClick = `
  61. #${tubeID} {
  62. background-color: #F1F1F1;
  63. color: #191919;
  64. border: 1px solid;
  65. border-color: rgba(255,255,255,0.2);
  66. margin-left: 8px;
  67. padding: 0 16px;
  68. border-radius: 18px;
  69. font-size: 14px;
  70. font-family: Roboto, Noto, sans-serif;
  71. font-weight: 500;
  72. text-decoration: none;
  73. display: inline-flex;
  74. align-items: center;
  75. height: 36px;
  76. line-height: normal;
  77. }
  78. #${tubeID}:hover {
  79. background-color: #D9D9D9;
  80. color: #191919;
  81. border-color: #F1F1F1;
  82. }
  83. `;
  84. GM_addStyle(addClick);
  85.  
  86. function inspectPg(selector) {
  87. return new Promise(resolve => {
  88. if (document.querySelector(selector)) {
  89. return resolve(document.querySelector(selector));
  90. }
  91. var observer = new MutationObserver(mutations => {
  92. if (document.querySelector(selector)) {
  93. resolve(document.querySelector(selector));
  94. observer.disconnect();
  95. }
  96. });
  97. observer.observe(document.body,{childList: true, subtree: true});
  98. });
  99. }
  100.  
  101. function addBtn() {
  102. inspectPg(currentButton).then((btnContainer) => {
  103. if (!btnContainer) {
  104. return;
  105. }
  106. if (document.querySelector(`#${tubeID}`)) {
  107. } else {
  108. var downloadBtn = document.createElement('a');
  109. downloadBtn.href = `${punisherYT + encodeURIComponent(window.location)}`;
  110. downloadBtn.target = '_blank';
  111. downloadBtn.id = tubeID;
  112. downloadBtn.innerText = 'Download';
  113. btnContainer.appendChild(downloadBtn);
  114. }
  115. });
  116. }
  117.  
  118. function pageLoad() {
  119. inspectPg(`#${tubeID}`).then((btn) => {
  120. if (!btn) {
  121. return;
  122. }
  123. btn.href = punisherYT + encodeURIComponent(window.location);
  124. });
  125. }
  126.  
  127. extractYT = function(url) {
  128. var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
  129. var match = String(url).match(regExp);
  130. return (match&&match[7].length==11)? match[7]: false;
  131. }
  132.  
  133. let buttonSet = false;
  134. function checkButton() {
  135. if (window.location.pathname === '/watch' && !buttonSet) {
  136. addBtn();
  137. buttonSet = true;
  138. setTimeout(pageLoad, 2000);
  139. }
  140. }
  141. window.addEventListener("yt-navigate-finish", () => {
  142. buttonSet = false;
  143. checkButton();
  144. });
  145. checkButton();
  146. })();