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

skippy scary button...

  1. // ==UserScript==
  2. // @name Youtube non-patched ad-blocker (instant skip method)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description skippy scary button...
  6. // @author You
  7. // @match *://www.youtube.com/*
  8. // @icon https://sun6-20.userapi.com/s/v1/ig2/1JBwSIp_3SU2eWIMWDneyhVV2oDHoPxX5z1v6gcCn6r5pk3f32VPytKPp2dvihTyKCVlRGLhTlNx5SEzp6kJfWE-.jpg?size=984x985&quality=96&crop=111,0,984,985&ava=1
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. window.notif = (message, time, icon) => {
  15. let div = document.createElement("div");
  16. 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;";
  17. div.innerHTML = message;
  18. document.body.appendChild(div);
  19. let img = document.createElement("img");
  20. img.src = icon;
  21. img.style = "width: 60px; margin-left: 10px; border: 1px black solid; border-radius: 10px;";
  22. div.appendChild(img);
  23. setTimeout(() => {
  24. div.style.left = "20px";
  25. setTimeout(() => {
  26. div.style.left = "-500px";
  27. setTimeout(() => {
  28. div.remove();
  29. }, 1500);
  30. }, time);
  31. }, 100);
  32. };
  33.  
  34. setInterval(() => {
  35. [...document.getElementsByClassName("ytp-ad-skip-button-modern ytp-button")].forEach(button => {
  36. button.click();
  37. 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");
  38. });
  39. }, 10);
  40. })();

QingJ © 2025

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