Sleazy Fork is available in English.

ylilauta-anti-adblock-toast-bullshit

Vittuun ne keltaset mainoslootat perkele

  1. // ==UserScript==
  2. // @name ylilauta-anti-adblock-toast-bullshit
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description Vittuun ne keltaset mainoslootat perkele
  6. // @author Harras Mainosten Vihaaja :)
  7. // @match *://ylilauta.org/*
  8. // @license MIT
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. const venaa_sopsyn_homoilut = () => {
  17. return new Promise(resolve => {
  18. if (document.querySelector('.toast-root')) {
  19. return resolve(document.querySelector('.toast-root'));
  20. }
  21.  
  22. const observer = new MutationObserver(mutations => {
  23. if (document.querySelector('.toast-root')) {
  24. resolve(document.querySelector('.toast-root'));
  25. // observer.disconnect();
  26. }
  27. });
  28.  
  29. observer.observe(document.body, {
  30. childList: true,
  31. subtree: true
  32. });
  33. });
  34. }
  35.  
  36. venaa_sopsyn_homoilut().then((elm) => {
  37. if (elm.textContent.includes('Error loading advertisements')) {
  38. console.log('Jutku koijattu', elm)
  39. elm.children[0].click();
  40. }
  41. });
  42. })();