Created
August 30, 2025 16:21
-
-
Save pixelomer/895c85861f6be2e8c0076a948b6dd329 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Native YouTube embed | |
// @namespace Violentmonkey Scripts | |
// @match https://www.vidtao.com/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description For VidTao | |
// ==/UserScript== | |
(function(){ | |
setInterval(() => { | |
for (const iframe of document.getElementsByTagName("iframe")) { | |
if (iframe.src.startsWith("https://www.youtube.com/embed/")) { | |
iframe.src = iframe.src.split("?")[0].replace("www.youtube.com", "youtube.com"); | |
iframe.style.removeProperty("pointer-events"); | |
iframe.removeAttribute("id"); | |
const upsell = iframe.parentElement.querySelector(".cta-link"); | |
if (upsell != null) { | |
upsell.remove(); | |
} | |
} | |
} | |
}, 200); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment