YouTube Multi Downloader v5.4 - YouTubeConverter.io (MP3, FHD, 720P, MP4, 1080P, M4A, etc) NO ADS 🚫

Compatible with YouTube MP3 Downloader! No ads, this script helps to add a download button. YouTubeConverter.io features the fastest ways to download YouTube videos and audios, ensuring quality.

目前为 2020-02-19 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Multi Downloader v5.4 - YouTubeConverter.io (MP3, FHD, 720P, MP4, 1080P, M4A, etc) NO ADS 🚫
  3. // @description Compatible with YouTube MP3 Downloader! No ads, this script helps to add a download button. YouTubeConverter.io features the fastest ways to download YouTube videos and audios, ensuring quality.
  4. // @namespace https://gf.qytechs.cn/users/152924
  5. // @homepageURL https://gf.qytechs.cn/scripts/34613
  6. // @supportURL https://gf.qytechs.cn/scripts/34613/feedback
  7. // @author Punisher
  8. // @version 5.4
  9. // @date 2020-02-19
  10. // @icon https://i.imgur.com/InuDDVK.png
  11. // @compatible chrome
  12. // @compatible firefox
  13. // @compatible opera
  14. // @compatible safari
  15. // @license CC BY-NC-ND 4.0 International. https://creativecommons.org/licenses/by-nc-nd/4.0/
  16. // @match *://*.youtube.com/*
  17. // ==/UserScript==
  18.  
  19. (function() {
  20. if (document.getElementById("polymerz-app") || document.getElementById("masthead") || window.Polymerz) {
  21. setInterval(function() {
  22. if (window.location.href.indexOf("watch?v=") < 0) {
  23. return false;
  24. }
  25. if (document.getElementById("meta-contents") && document.getElementById("punisherz") === null) {
  26. Addytpolymerz();
  27. }
  28. }, 100);
  29. setElement = function(url) {
  30. var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
  31. var match = String(url).match(regExp);
  32. return (match&&match[7].length==11)? match[7]: false;
  33. };
  34.  
  35. } else {
  36. setInterval(function() {
  37. if (window.location.href.indexOf("watch?v=") < 0) {
  38. return false;
  39. }
  40. if (document.getElementById("watch8-sentiment-actions") && document.getElementById("punisherz") === null) {
  41. AddhtmlDV();
  42. }
  43. }, 100);
  44. setElement = function(url) {
  45. var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
  46. var match = String(url).match(regExp);
  47. return (match&&match[7].length==11)? match[7]: false;
  48. };
  49. }
  50.  
  51. function AddhtmlDV() {
  52. if (document.getElementById("watch8-sentiment-actions")) {
  53. var wrap = document.getElementById('watch8-sentiment-actions');
  54. var button = "<div id='punisherz' style='display: inline-block; margin-left: 5px; vertical-align: middle;'>";
  55. button += "<a href=\"//youtubeconverter.io/convert?query=" + encodeURIComponent(location.href) + "\" target=\"_blank\"" + "style=\"display: inline-block; font-size: inherit; height: inherit; border: 1px solid rgb(226, 226, 226); border-radius: 3px; padding-left: 28px; cursor: pointer; vertical-align: middle; position: relative; line-height: 22px; text-decoration: none; z-index: 1; color: rgb(226, 226, 226);\">";
  56. button += "<i style=\"position: absolute; display: inline-block; left: 6px; top: 3px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA3UlEQVR42mNgoDX4//+/PhBHA7EnEHOSolEAiLf8RwL//v17DqRcCWkyBmJ2oOJN/7GDr0Csik2zG1DTZySb8IFJ2Aw4+594cASIGZE18wDxEzT/vgZSd0EYysZmiCBIsyMQv8CioAaIl0JxDQ6XLAAZ8B6HZDvIIVDcjk0B0GWfGKAKyDXgC8iAh2iCF4DUCSAuQDKgACp2EU3tclj0fUESBMV/ChAfQjIAxE5BSxvngVgMFgvSQJwKxIVQ2/SRFUPZ+lD5PCD2AWIWQkmZE2rzQZLyAJakLUDT3AoALzJfljL5Yb4AAAAASUVORK5CYII=); background-size: 12px; background-repeat: no-repeat; background-position: center center; width: 16px; height: 16px;\"></i>";
  57. button += "<span style=\"padding-right: 12px;\">Download</span></a></div>";
  58. var style = "<style>#punisherz button: -moz-focus-inner {padding: 0; margin:0} #punisherz a {background-color: #1A1616} #punisherz a:hover {background-color: #1A1616} #punisherz a:active {background-color: #1A1616}</style>";
  59. var tmp = wrap.innerHTML;
  60. wrap.innerHTML = tmp + button + style;
  61. }
  62. }
  63.  
  64. function Addytpolymerz() {
  65. var buttonDiv = document.createElement("span");
  66. buttonDiv.id = "punisherz";
  67. buttonDiv.style.width = "100%";
  68. buttonDiv.style.marginTop = "3px";
  69. buttonDiv.style.padding = "12px 0";
  70. var addButton = document.createElement("a");
  71. addButton.appendChild(document.createTextNode("DOWNLOAD"));
  72. addButton.style.width = "100%";
  73. addButton.style.cursor = "pointer";
  74. addButton.style.height = "inherit";
  75. addButton.style.backgroundColor = "#141111";
  76. addButton.style.color = "#ffffff";
  77. addButton.style.padding = "10px 22px";
  78. addButton.style.margin = "0px 0px";
  79. addButton.style.border = "0";
  80. addButton.style.borderRadius = "2px";
  81. addButton.style.fontSize = "1.4rem";
  82. addButton.style.fontFamily = "inherit";
  83. addButton.style.textAlign = "center";
  84. addButton.style.textDecoration = "none";
  85. addButton.href = "//youtubeconverter.io/convert?query=" + encodeURIComponent(location.href);
  86. addButton.target = "_blank";
  87. buttonDiv.appendChild(addButton);
  88. var targetElement = document.querySelectorAll("[id='subscribe-button']");
  89. if(targetElement){
  90. for(var i = 0; i < targetElement.length; i++){
  91. if(targetElement[i].className.indexOf("ytd-video-secondary-info-renderer") > -1){
  92. targetElement[i].appendChild(buttonDiv);
  93. }
  94. }
  95. }
  96. }
  97. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址