AniWave Ads Hider

Removes all Ads from AniWave.

  1. // ==UserScript==
  2. // @name AniWave Ads Hider
  3. // @namespace https://greasyfork.org/en/users/670188-hacker09?sort=daily_installs
  4. // @version 6
  5. // @description Removes all Ads from AniWave.
  6. // @author hacker09
  7. // @include https://aniwave.*/*
  8. // @include https://mcloud.bz/e/*
  9. // @include https://vidplay.online/e/*
  10. // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://aniwave.se&size=64
  11. // @run-at document-end
  12. // @grant none
  13. // ==/UserScript==
  14. // || img.src === 'https://vidplay.online/assets/bn/3.png'
  15. setTimeout((function() {
  16. 'use strict';
  17. document.querySelectorAll("section.sda").forEach(el => el.style.display = 'none'); //Hides the video right sidebar ads and the row of ads below the video
  18. document.querySelectorAll('img').forEach(function(img) { //forEach img on the iframe
  19. if (img.src.match(/movie.jpg|assets\/bn/)) { //Check if the image source includes the specified image name
  20. img.parentNode.parentNode.parentNode.parentNode.style.display = 'none'; //Hide the ad
  21. } //Finishes the if condition
  22. }); //Finishes the forEach loop
  23. }), 1000)();