Skip to content

Instantly share code, notes, and snippets.

@Hypfer
Last active November 23, 2025 07:54
Show Gist options
  • Select an option

  • Save Hypfer/6f10fadbc1aacf540c39eadef7661bb3 to your computer and use it in GitHub Desktop.

Select an option

Save Hypfer/6f10fadbc1aacf540c39eadef7661bb3 to your computer and use it in GitHub Desktop.
This userscript hides the nagging notification boxes that remind you that you've enabled interaction limits on a repo or account
// ==UserScript==
// @name Hide Github Interaction Limits Nagging Notifications
// @namespace Violentmonkey Scripts
// @match https://github.com/**
// @grant none
// @version 2.1
// @author -
// @description Removes interaction limit banners based on link targets
// ==/UserScript==
(function() {
'use strict';
function removeNag() {
const triggers = document.querySelectorAll('a[href*="/settings/interaction_limits"]');
for (const trigger of triggers) {
const banner = trigger.closest('.flash, [class*="Flash"], [class*="OverviewHeader"]');
if (banner && banner.textContent.toLowerCase().includes('interaction limit')) {
banner.remove();
}
}
}
removeNag();
new MutationObserver(() => {
removeNag();
}).observe(document.body, { childList: true, subtree: true });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment