FaviconBadger

Add a counter badge on the favicon

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/453212/1105873/FaviconBadger.js

Author
PIZIDAVI
Version
1.0
Created
2022-10-17
Updated
2022-10-17
License
N/A

FaviconBadger

Add a counter badge on the favicon

Example

const faviconBadger = new FaviconBadger({
  size : 0.6,
  position : 'ne',
  radius : 8,
  backgroundColor : '#f00',
  color : '#fff'
});

faviconBadger.value = 1;
faviconBadger.update();