Youtube Disable Paid Promotion Button

Prevents the user from accidentally clicking on the "Includes Paid Promotion" button that appears when hovering over a thumbnail. Simply makes that button clickthrough via CSS.

// ==UserScript==
// @name         Youtube Disable Paid Promotion Button
// @namespace    http://tampermonkey.net/
// @version      2025-01-28
// @description  Prevents the user from accidentally clicking on the "Includes Paid Promotion" button that appears when hovering over a thumbnail. Simply makes that button clickthrough via CSS.
// @author       iwersi
// @match        *://*.youtube.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant        GM_addStyle
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
    /* "Includes Paid Promotion" button  */
    .ytmPaidContentOverlayHost {
        pointer-events: none;
    }
    /* Div that contains the button */
    .ytInlinePlayerControlsTopLeftControls {
        pointer-events: none;
    }
    `);
})();

QingJ © 2025

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