Skip to content

Instantly share code, notes, and snippets.

@pixelomer
Created August 30, 2025 16:21
Show Gist options
  • Save pixelomer/895c85861f6be2e8c0076a948b6dd329 to your computer and use it in GitHub Desktop.
Save pixelomer/895c85861f6be2e8c0076a948b6dd329 to your computer and use it in GitHub Desktop.
// ==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