Last active
March 27, 2024 09:04
-
-
Save splintor/ff2c36b0ecadfac01bf528ca21ea9694 to your computer and use it in GitHub Desktop.
Bank Hapoalim - Hide zero notifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Poalim - Hide zero notifications | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-27 | |
// @description Hide notifications red circle if it is 0 | |
// @author Shmulik Flint | |
// @match https://login.bankhapoalim.co.il/ng-portals/rb/he/* | |
// @match https://www.bankhapoalim.co.il/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=co.il | |
// @downloadURL https://gist.github.com/splintor/ff2c36b0ecadfac01bf528ca21ea9694/raw | |
// @updateURL https://gist.github.com/splintor/ff2c36b0ecadfac01bf528ca21ea9694/raw | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(() => document.querySelectorAll('.toolbar-counter').forEach(n => { | |
n.style.display = n.textContent === '0' ? 'none' : ''; | |
}), 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment