diff --git a/Extensions/denotifier.icon.js b/Extensions/denotifier.icon.js new file mode 100644 index 000000000..6c68b3510 --- /dev/null +++ b/Extensions/denotifier.icon.js @@ -0,0 +1 @@ +data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAFFAAABRQGfS1e4AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAABJJJREFUWIWtl02IVWUYx3/vueeOV20av6bUMMMoUCTQkiipUCncFC2qjSnZJihq0SbauGrTqlpEQUQLIyyKqEUEVqh9LaIPtJRAUcHQEZ2ymXScc87zb/G+77lnZu57VfRhhnvvOe/7/J+P//8573GSRDBJOOeYbqnr18KyBj4kQFJBNT+7168sgLy50TmI+4+dFwrA0ysw9Xd6TQzeSSyfDZlz/rpzENY7xR6EG8fPi0d+cxwYu7JMLmV3DMLna2F5JwQYMDOTGumLZw5ee3CA/WPw3EFfGUVMwFVmcnRL39ntKK6wj5drDigfErFRAnIkjN5ES9nKufD4YnHrbO/0yAX44ozjp3OXsTni4dPOFX7UrCYdyKwM3lwpti0RLecQ8nsRO1bAh6fg6T8cE9Yvgm69hSMPDAR3aQm9tcqDF4J3T8CeUUfLwZpBeHaZeGKxd73lQDoJISRC8OCKsgzK8JnM+bpF2SOQe4bEvnVCiG2/Z+w6NRVk80Lx2RojAzb93GLf371zv7ipCu32tc8ilhDhr6c9tdSD7xt1M8ABvjzr+GbUt3Lrkr498EoAJPOTsPmfsvvn+/tfjaYd7x11CNg4P+1HdKUoIIv9UJ/scwfLBwwJzhS919zcEQ8PG5JY3DbaCRrILAThAwkV8EFYogKZA5f58k5UM+9vXih+vKtk7XU+yMzBonZvX1MqIPwklITMT6dUFWQ+u6bEWg523FLx8eqC+W3YP+bq0qbGyvQW5MRyBE2nzOTvVyHC4bZ4b2XFhgXGeCmeP5RTCN5fZUiGJTIxM684eRlmZkbM25RmbwxyVibuHBR71xY8MK/k0Dhs+HWAj05nWOQT1IH29BPbLvlB1GR/qgZCyGDbDRV3zytoA7tGWrxwuM2FwAtDWEg9lUr0479D3uxZPxlGx+uHKkqDHcfbvH4in7Imaygq1QKpMW8EeWS+/GAiA6YT3QSlRAs4XTi2/zmL789lM5w7B5X53qaeqDGR+PjPJF82C5+92FsKjvznMIl3TuY9wQFubHt2n5iA8ap3M6MCLKgqq0yhbP0n4Q9jGWZi01CZXPPgvAJJfJcIELyaKusmXVegMvNSS8SwcyTHEGvmFjy2cOY43DhUct9QiUl8cLqdDsDiDPCYuZde0KUD5wSaWb5fxlvsHGnz5PAkb6y4wLrBkj3n2hji3usrtg9PIoNPz+Z8+2+rTwU8Xpx4uUU6RjUkt8LLxzpUZmwZLti66CJbhyfr86QDPjnT5sWjc/p46M6TuC83ayhW/QMoBC8dn8Pbp4xHF0yyomPkThyeyNj9zwD7z6czj1ZNwRO5mbqnpBQBptnRixmvnexc1trpVuMF0KwyqxlZmbF6dprlV2vrB4ta7pVVmJl/GkZwM/HqsnFu6/R45l6l3d4peeWmsRpLIWl3+K+R8G7k6nFcyXGybNWkTDWme7KbuqbXnqUDFa3G+18ceHllFggZ5edH6dK8qF+YIJK2Czn1XTDCNY7cjfUSOHNY8yEgvz43U80/yQJiVyaRl/X7IwBRy6oD8rusPlN4n11pd09balRO/A9QEEFxWjjeQQAAAABJRU5ErkJggg== \ No newline at end of file diff --git a/Extensions/denotifier.js b/Extensions/denotifier.js new file mode 100644 index 000000000..1b4c4017c --- /dev/null +++ b/Extensions/denotifier.js @@ -0,0 +1,22 @@ +//* TITLE De-Notifier **// +//* VERSION 1.0.0 **// +//* DESCRIPTION Removes non-essential unread notification badges. **// +//* DEVELOPER circlejourney **// +//* FRAME false **// +//* BETA false **// +XKit.extensions.denotifier = new Object({ + + running: false, + + run: async function() { + this.running = true; + await XKit.css_map.getCssMap(); + const { navItem, notificationBadgeIn } = XKit.css_map.cssMap; + XKit.tools.add_css(`.${navItem}[title='Home'] .${notificationBadgeIn} { display: none !important; }`, "denotifier"); + }, + + destroy: function() { + this.running = false; + XKit.tools.remove_css("denotifier"); + } +});