Notifications

I have found that the first cou­ple hours of the day are my most pro­duc­tive. I try to move te­dious tasks to later so I can fo­cus on solv­ing hard prob­lems” that need my full at­ten­tion.

In the past, this has been hard to do for one rea­son: GitHub no­ti­fi­ca­tions. They pull me in and con­sume hours of my time. Re­spond­ing to and work­ing with OSS con­trib­u­tors is im­por­tant to me, but that can hap­pen later in the day.

So I wrote a lit­tle ViolentMonkey script to hide the no­ti­fi­ca­tions icon dur­ing these early morn­ing hours.

// ==UserScript==
// @name        Hide Notification Indicator
// @namespace   Violentmonkey Scripts
// @match       https://github.com/*
// @grant       none
// @version     1.0
// @author      Elijah Potter
// @description 1/29/2025, 8:16:11 AM
// ==/UserScript==

function hideEm(){
  const matches = document.getElementsByClassName('AppHeader-button--hasIndicator');
    for (const element of matches) {
      element.remove();
  }
}

(new MutationObserver(hideEm)).observe(document, {childList: true, subtree: true});