CtgoFx

Remove ads and white spaces.

  1. // ==UserScript==
  2. // @name CtgoFx
  3. // @author Itsuki
  4. // @version 0.5
  5. // @match *://chatango.com/*
  6. // @match *://*.chatango.com/
  7. // @description Remove ads and white spaces.
  8. // @license WTFPL
  9. // @namespace https://greasyfork.org/en/users/6316-itsuki
  10. // @homepageURL https://greasyfork.org/en/scripts/6004-ctgofx
  11. // @run-at document-end
  12. // @grant none
  13. // ==/UserScript==
  14. ("use strict");
  15.  
  16. const selectors = [
  17. "col",
  18. "colgroup",
  19. "embed",
  20. "#ad",
  21. "#ad_placeholder_td",
  22. "#ad_wrapper",
  23. "#buyers_ad",
  24. "#bottom_table",
  25. "body [name*='google_ads_frame1']",
  26. "body [name*='google_ads_frame2']",
  27. "#left_container [href*='ad']",
  28. ".topad",
  29. ];
  30.  
  31. (function removeElement() {
  32. selectors.forEach((selector) => {
  33. const elements = document.querySelectorAll(selector);
  34. elements.forEach((elemento) => elemento.remove());
  35. });
  36. })();