ralkan / Improved Sentry (Backend)

// ==UserScript==
// @name         Improved Sentry (Backend)
// @namespace    http://tampermonkey.net/
// @version      0.1
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// @description  try to take over the world!
// @author       You
// @include      *://*.sentry.io/*
// @include      *://sentry.io/*
// @grant        none
// ==/UserScript==

function remove_js_loggers() {
    if ($('ul.group-list li').length < 1) {
        window.setTimeout(remove_js_loggers, 1000);
    } else {
        $('.event-annotation').map(function(i, o) {
            var $o = $(o);
            if ($o.text() === 'otelcomjs-logger') {
                $o.closest('li.group').remove();
            }
        });
    }
}

(function() {
    remove_js_loggers();
})();