YouTube Multi Downloader v3.7.1 (MP3, FHD, AVI, MP4, FLV, M4V, WKV, ACC, WOV, OGG, etc)

This script helps to add a download button. Saveclipbro.com features the fastest ways to download YouTube videos and audios, ensuring quality. Supported Services: YouTube, Dailymotion, Vimeo, Twitter, Vine, Facebook, Instagram, Xvideos, CNN, SoundCloud, Redtube, Freesound, Pornhub, Reddit, Liveleak and more! You will like!

目前为 2018-09-27 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name YouTube Multi Downloader v3.7.1 (MP3, FHD, AVI, MP4, FLV, M4V, WKV, ACC, WOV, OGG, etc)
  3. // @description This script helps to add a download button. Saveclipbro.com features the fastest ways to download YouTube videos and audios, ensuring quality. Supported Services: YouTube, Dailymotion, Vimeo, Twitter, Vine, Facebook, Instagram, Xvideos, CNN, SoundCloud, Redtube, Freesound, Pornhub, Reddit, Liveleak and more! You will like!
  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 3.7.1
  9. // @date 2018-09-27
  10. // @compatible chrome
  11. // @compatible firefox
  12. // @compatible opera
  13. // @compatible safari
  14. // @license CC BY-NC-ND 4.0 International. https://creativecommons.org/licenses/by-nc-nd/4.0/
  15. // @match *://*.youtube.com/*
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. if (document.getElementById("polymer-app") || document.getElementById("masthead") || window.Polymer) {
  20. setInterval(function() {
  21. if (window.location.href.indexOf("watch?v=") < 0) {
  22. return false;
  23. }
  24. if (document.getElementById("meta-contents") && document.getElementById("punisher") === null) {
  25. Addytpolymer();
  26. }
  27. }, 100);
  28.  
  29. } else {
  30. setInterval(function() {
  31. if (window.location.href.indexOf("watch?v=") < 0) {
  32. return false;
  33. }
  34. if (document.getElementById("watch8-sentiment-actions") && document.getElementById("punisher") === null) {
  35. AddhtmlDV();
  36. }
  37. }, 100);
  38. }
  39.  
  40. function AddhtmlDV() {
  41. if (document.getElementById("watch8-sentiment-actions")) {
  42. var wrap = document.getElementById('watch8-sentiment-actions');
  43. var button = "<div id='punisher' style='display: inline-block; margin-left: 10px; vertical-align: middle;'>";
  44. button += "<a href=\"http://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: inherit; border: 1px solid rgb(112, 112, 112); 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);\">";
  45. 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>";
  46. button += "<span style=\"padding-right: 12px;\">Download</span></a></div>";
  47. var style = "<style>#punisher button: -moz-focus-inner {padding: 0; margin:0} #punisher a {background-color: #3a3a3a} #punisher a:hover {background-color: #2b2b2b} #punisher a:active {background-color: #2b2b2b}</style>";
  48. var tmp = wrap.innerHTML;
  49. wrap.innerHTML = tmp + button + style;
  50. }
  51. }
  52.  
  53. function Addytpolymer() {
  54. var buttonDiv = document.createElement("span");
  55. buttonDiv.style.width = "170%";
  56. buttonDiv.id = "punisher";
  57. var addButton = document.createElement("a");
  58. addButton.appendChild(document.createTextNode("DOWNLOAD"));
  59. addButton.style.width = "170px";
  60. addButton.style.position = "relative";
  61. addButton.style.letterSpacing = "0.007px";
  62. addButton.style.boxSizing = "border-box";
  63. addButton.style.minWidth = "5.14em";
  64. addButton.style.height = "inherit";
  65. addButton.style.backgroundColor = "#3a3a3a";
  66. addButton.style.color = "#ffffff";
  67. addButton.style.cursor = "pointer";
  68. addButton.style.padding = "10px 16px";
  69. addButton.style.marginTop = "5px";
  70. addButton.style.margin = "0px 3px";
  71. addButton.style.border = "0";
  72. addButton.style.borderRadius = "2px";
  73. addButton.style.fontFamily = "inherit";
  74. addButton.style.fontStyle = "inherit";
  75. addButton.style.fontSize = "1.4rem";
  76. addButton.style.textAlign = "center";
  77. addButton.style.textTransform = "uppercase";
  78. addButton.style.textDecoration = "none";
  79. addButton.href = "http://saveclipbro.com/convert?main_search%5BlinkToDownload%5D=" + encodeURIComponent(document.URL) + '&main_search%5Bsubmit%5D=';
  80. addButton.target = "_blank";
  81. buttonDiv.appendChild(addButton);
  82. if (document.getElementById("meta-contents")){
  83. if(document.getElementById('meta-contents').querySelector('#top-row ytd-video-owner-renderer.ytd-video-secondary-info-renderer #sponsor-button ytd-button-renderer paper-button')){
  84. var targetElement = document.querySelectorAll("[id='count']");
  85. for (var i = 0; i < targetElement.length; i++) {
  86. if (targetElement[i].className.indexOf("ytd-video-primary-info-renderer") > -1) {
  87. targetElement[i].appendChild(buttonDiv);
  88. }
  89. }
  90. }
  91. else{
  92. var wrap = document.getElementById('meta-contents').querySelector('#top-row ytd-video-owner-renderer.ytd-video-secondary-info-renderer #sponsor-button');
  93. wrap.appendChild(buttonDiv);
  94. }
  95. }
  96. }
  97. })();

QingJ © 2025

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