🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Youtube non-patched ad-blocker (instant skip method)

skippy scary button...

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         Youtube non-patched ad-blocker (instant skip method)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  skippy scary button...
// @author       You
// @match        *://www.youtube.com/*
// @icon         https://sun6-20.userapi.com/s/v1/ig2/1JBwSIp_3SU2eWIMWDneyhVV2oDHoPxX5z1v6gcCn6r5pk3f32VPytKPp2dvihTyKCVlRGLhTlNx5SEzp6kJfWE-.jpg?size=984x985&quality=96&crop=111,0,984,985&ava=1
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.notif = (message, time, icon) => {
		let div = document.createElement("div");
		div.style = "background-color: white; color: black; font-family: monospace; display: flex; justify-content: center; align-items: center; position: absolute; max-width: 400px; left: -420px; top: 20px; border: 1px solid black; border-radius: 10px; z-index: 100000; transition: left 1s cubic-bezier(0.6, 0.59, 0, 0.99) 0s; padding-inline: 20px; padding-block: 8px;";
		div.innerHTML = message;
		document.body.appendChild(div);
		let img = document.createElement("img");
		img.src = icon;
		img.style = "width: 60px; margin-left: 10px; border: 1px black solid; border-radius: 10px;";
		div.appendChild(img);
		setTimeout(() => {
			div.style.left = "20px";
			setTimeout(() => {
				div.style.left = "-500px";
				setTimeout(() => {
					div.remove();
				}, 1500);
			}, time);
		}, 100);
	};

    setInterval(() => {
        [...document.getElementsByClassName("ytp-ad-skip-button-modern ytp-button")].forEach(button => {
            button.click();
            window.notif("Add blocked !", 3000, "https://sun6-20.userapi.com/s/v1/ig2/1JBwSIp_3SU2eWIMWDneyhVV2oDHoPxX5z1v6gcCn6r5pk3f32VPytKPp2dvihTyKCVlRGLhTlNx5SEzp6kJfWE-.jpg?size=984x985&quality=96&crop=111,0,984,985&ava=1");
        });
    }, 10);
})();