geniuschatremover

small script to remove chat on page load

  1. // ==UserScript==
  2. // @name geniuschatremover
  3. // @description small script to remove chat on page load
  4. // @description:en small script to remove chat on page load
  5. // @version 3
  6. // @author nnmrts
  7. // @match http://genius.com/*
  8. // @match https://genius.com/*
  9. // @grant none
  10. // @require http://code.jquery.com/jquery-3.1.1.min.js
  11. // @namespace https://greasyfork.org/users/86510
  12. // ==/UserScript==
  13.  
  14. (function(){
  15. $( document ).ready( function () {
  16. if ($("chat")[0]) {
  17. $("chat")[0].parentNode.removeChild($("chat")[0]);
  18. }
  19. if ($("#chat")[0]) {
  20. $("#chat")[0].parentNode.removeChild($("#chat")[0]);
  21. }
  22. if ($(".chat")[0]) {
  23. $(".chat")[0].parentNode.removeChild($(".chat")[0]);
  24. }
  25. });
  26. }());