// ==UserScript== // @name YouTube™ Multi Downloader v11.3 🌐 (PC & Mobile 🚀) — AdBlock, Zero ADS 🚫🔥 | Shorts, Videos & Music // @name:pt-BR YouTube™ Multi Downloader v11.3 🌐 (PC & Mobile 🚀) — AdBlock, Zero ADS 🚫🔥 | Shorts, Videos & Music // @description Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:pt-BR Adiciona um botão flutuante para baixar vídeos, Shorts e músicas do YouTube em alta qualidade, com bloqueio de anúncios integrado para uma experiência rápida e suave. // @description:ar Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:bg Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:cs Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:da Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:de Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:el Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:eo Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:es Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:fi Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:fr Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:fr-CA Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:he Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:hu Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:id Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:it Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:ja Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:ko Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:nb Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:nl Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:pl Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:ro Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:ru Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:sk Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:sr Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:sv Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:th Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:tr Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:uk Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:ug Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:vi Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:zh-CN Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @description:zh-TW Adds a floating button to download YouTube videos, Shorts, and music in high quality, with built-in ad blocking for a fast and smooth experience. // @namespace https://greasyfork.org/users/152924 // @homepageURL https://greasyfork.org/scripts/34613 // @supportURL https://greasyfork.org/scripts/34613/feedback // @author Punisher // @version 11.3 RTM // @date 2026-01-23 // @icon https://iili.io/fOyuFFS.png // @compatible chrome // @compatible firefox // @compatible opera // @compatible safari // @compatible edge // @license CC-BY-NC-ND-4.0 // @match https://*.youtube.com/* // @match https://music.youtube.com/* // @grant GM_addStyle // @run-at document-idle // @downloadURL none // ==/UserScript== (function() { "use strict"; let video; const floatBtnID = "ytPunisherBtn"; const btnColor = "#575656"; const punisherURL = "//exploreai.ca/convert/?id="; const cssSelectorArr = [".video-ads.ytp-ad-module","#player-ads .ytp-ad-module",".ytp-ad-player-overlay",".ytp-ad-preview-container",".ytp-ad-progress-list",".ytp-ad-skip-button",".ytp-ad-skip-button-modern",".ytp-ad-chrome-button",".ytp-ad-persistent-progress-bar",".yt-featured-product",".ytp-suggested-action",".ytp-ad-button",".ytp-ad-overlay-container",".ytp-ad-progress",".ytp-ad-text",".ytp-ad-overlay-slot",".ytp-ad-top-slot",".ytp-ad-bottom-slot","ytd-reel-shelf-renderer ytd-ad-slot-renderer","ytd-reel-video-renderer ytd-ad-slot-renderer","#shorts-player ytd-ad-slot-renderer",".ytd-display-ad-renderer",".ytd-display-ad-notice-renderer",".ad-container","ad-slot-renderer","ytd-shorts-ad-renderer","ytm-companion-ad-renderer","ytd-endpoint-ad-renderer","#related ytd-ad-slot-renderer","#related #player-ads","#related .#-ad-","ytd-companion-ad-renderer","ytd-watch-next-secondary-results-renderer ytd-ad-slot-renderer",".ytd-rich-item-renderer.style-scope.ytd-rich-grid-row #content:has(.ytd-display-ad-renderer)","#masthead-ad","#player-ads",".ytd-merch-shelf-renderer","ytd-engagement-panel-section-list-renderer[target-id='engagement-panel-ads']","#panels > ytd-engagement-panel-section-list-renderer[target-id='engagement-panel-ads']","ytd-popup-container:has(a[href='/premium'])","tp-yt-paper-dialog:has(yt-mealbar-promo-renderer)","ytmusic-mealbar-promo-renderer","ytmusic-statement-banner-renderer",".ytd-promoted-video-renderer",".ytd-promoted-sparkles-web-renderer",".ytd-promoted-sparkles-text-search-renderer",".ytd-sponsor-message-renderer",".ytd-reel-shelf-renderer ytd-ad-slot-renderer:has(.yt-sparkle-overlay)","ytd-reel-video-renderer ytd-ad-slot-renderer:has(.yt-sparkle-overlay)","#secondary ytd-compact-promoted-video-renderer","#secondary ytd-promoted-sparkles-web-renderer","#secondary ytd-rich-item-renderer:has(.ytd-display-ad-renderer)","ytm-companion-ad-renderer",".ytd-endpoint-ad-renderer","ytd-rich-section-renderer:has(ytd-display-ad-renderer)",".ytd-video-masthead-ad",".ytp-ad-image-overlay",".ytp-ad-click-target",".ytp-ad-annotation",".ytp-ad-quiz-overlay",".ytp-ad-companion-slot"]; const checkRunFlag = id => { if (document.getElementById(id)) return true; const style = document.createElement("style"); style.id = id; (document.head || document.body).appendChild(style); return false; }; const generateRemoveADCssText = arr => arr.map(s => `${s}{display:none!important}`).join(" "); const getVideoID = url => { const m = url.match(/(?:v=|\/)([0-9A-Za-z_-]{11})|\/shorts\/([0-9A-Za-z_-]{11})/); return m ? (m[1] || m[2]) : null; }; const getVideoDom = () => video = document.querySelector(".ad-showing video") || document.querySelector("video"); const playAfterAd = () => { if (video && video.paused && video.currentTime < 1) video.play(); }; const generateRemoveADHTMLElement = id => { if (checkRunFlag(id)) return; const style = document.createElement("style"); style.appendChild(document.createTextNode(generateRemoveADCssText(cssSelectorArr))); (document.head || document.body).appendChild(style); }; const closeOverlay = () => { document.querySelectorAll("ytd-popup-container a[href='/premium']").forEach(el => el.closest("ytd-popup-container")?.remove()); document.querySelectorAll("tp-yt-iron-overlay-backdrop").forEach(el => { el.className = ""; el.removeAttribute("opened"); }); }; const nativeTouch = function() { const t = new Touch({ identifier: Date.now(), target: this, clientX: 0, clientY: 0, radiusX: 1, radiusY: 1, rotationAngle: 0, force: 1 }); this.dispatchEvent(new TouchEvent("touchstart", { bubbles: true, cancelable: true, touches: [t], targetTouches: [t], changedTouches: [t] })); this.dispatchEvent(new TouchEvent("touchend", { bubbles: true, cancelable: true, touches: [], targetTouches: [], changedTouches: [t] })); }; const skipAd = () => { if (!video) return; const btn = document.querySelector(".ytp-ad-skip-button, .ytp-skip-ad-button, .ytp-ad-skip-button-modern"); const shortMsg = document.querySelector(".video-ads.ytp-ad-module .ytp-ad-player-overlay, .ytp-ad-button-icon"); if ((btn || shortMsg) && location.hostname !== "m.youtube.com") video.muted = true; if (btn) { btn.click(); nativeTouch.call(btn); video.currentTime = video.duration; } else if (shortMsg) video.currentTime = video.duration; }; const removePlayerAD = id => { if (checkRunFlag(id)) return; const obs = new MutationObserver(() => { getVideoDom(); closeOverlay(); skipAd(); playAfterAd(); }); obs.observe(document.body, { childList: true, subtree: true }); }; function addFloatButton() { if (document.getElementById(floatBtnID)) return; const btn = document.createElement("button"); btn.id = floatBtnID; let dragging = false, ox = 0, oy = 0; const limit = (x, y) => ({ x: Math.max(0, Math.min(x, innerWidth - btn.offsetWidth)), y: Math.max(0, Math.min(y, innerHeight - btn.offsetHeight)) }); const open = () => { const vid = getVideoID(location.href); if (vid) window.open(punisherURL + vid, "_blank"); }; const start = (x, y) => { dragging = true; const r = btn.getBoundingClientRect(); ox = x - r.left; oy = y - r.top; btn.style.cursor = "grabbing"; }; const move = (x, y) => { if (!dragging) return; const p = limit(x - ox, y - oy); btn.style.left = p.x + "px"; btn.style.top = p.y + "px"; btn.style.right = btn.style.bottom = "auto"; }; const end = () => { dragging = false; btn.style.cursor = "grab"; }; btn.addEventListener("mousedown", e => start(e.clientX, e.clientY)); document.addEventListener("mousemove", e => move(e.clientX, e.clientY)); document.addEventListener("mouseup", end); btn.addEventListener("touchstart", e => start(e.touches[0].clientX, e.touches[0].clientY), { passive: true }); document.addEventListener("touchmove", e => move(e.touches[0].clientX, e.touches[0].clientY), { passive: true }); document.addEventListener("touchend", end); btn.addEventListener("click", () => !dragging && open()); if (window.matchMedia("(pointer: fine)").matches) { let hideTimer; const showBtn = () => { btn.classList.remove("punisher-hidden"); clearTimeout(hideTimer); hideTimer = setTimeout(() => btn.classList.add("punisher-hidden"), 3000); }; document.addEventListener("mousemove", showBtn); document.addEventListener("mousedown", showBtn); document.addEventListener("keydown", showBtn); showBtn(); } document.body.appendChild(btn); } GM_addStyle(` #${floatBtnID}{background:${btnColor} url("https://iili.io/fObpSDv.png") no-repeat center;background-size:65%;position:fixed;top:70%;right:20px;transform:translateY(-50%);width:60px;height:60px;border-radius:50%;border:none;cursor:grab;display:flex;justify-content:center;align-items:center;z-index:9999;box-shadow:0 6px 12px rgba(0,0,0,.3);transition:opacity .4s ease;opacity:1;} #${floatBtnID}.punisher-hidden{opacity:0;pointer-events:none;} `); generateRemoveADHTMLElement("yt-remove-ad-css"); removePlayerAD("yt-remove-player-ad"); const update = () => { addFloatButton(); }; let lastURL = location.href; setInterval(() => { if (location.href !== lastURL) { lastURL = location.href; update(); } }, 800); const domObserver = new MutationObserver(() => update()); domObserver.observe(document.body, { childList: true, subtree: true }); update(); })();