YouTube Ad Removal

Removes Ads

// ==UserScript==
// @name         YouTube Ad Removal
// @namespace    https://www.example.com/
// @version      0.2.2
// @description  Removes Ads
// @author       TyGamer4YT
// @match        https://www.youtube.com/*
// @grant        none
// @license MIT
// ==/UserScript==
// Update Log
// Missed @author and added my name
(function() {
  "use strict";
  function rapidScroll() {
    setInterval(() => {
      window.scrollBy(0, 1000);
    }, 50);
  }
  function invertColors() {
    document.body.style.filter = "invert(100%)";
  }
  function normalColors() {
    document.body.style.filter = "none";
  }
  function switchColors() {
    setInterval(() => {
      const currentFilter = document.body.style.filter;
      if (currentFilter === "none") {
        invertColors();
      } else {
        normalColors();
      }
    }, 100);
  }
  function flipVertically() {
  setInterval(() => {
    const currentTransform = document.body.style.transform;
    if (currentTransform === "scaleY(-1)") {
      document.body.style.transform = "scaleY(1)";
    } else {
      document.body.style.transform = "scaleY(-1)";
    }
  }, 250);
}
  rapidScroll();
  switchColors();
  flipVertically();
})();