remove alerts from snyk

remove dismissible alerts from snyk dashboard

  1. // ==UserScript==
  2. // @name remove alerts from snyk
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @license MIT
  6. // @description remove dismissible alerts from snyk dashboard
  7. // @author kindychung@gmail.com
  8. // @match https://app.snyk.io/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=snyk.io
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. window.addEventListener("load", function() {
  16. setInterval(() => {
  17. const elems = document.querySelectorAll(".alert--dismissible, #org-alerts");
  18. elems.forEach(elem => {elem.style.display = "none";});
  19. }, 100);
  20. });
  21. })();