-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
Initial commit for new De-Notifier extension.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//* 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, | ||
Check failure on line 9 in Extensions/denotifier.js GitHub Actions / Test
|
||
|
||
run: async function () { | ||
Check failure on line 11 in Extensions/denotifier.js GitHub Actions / Test
Check failure on line 11 in Extensions/denotifier.js GitHub Actions / Test
Check failure on line 11 in Extensions/denotifier.js GitHub Actions / Test
|
||
this.running = true; | ||
Check failure on line 12 in Extensions/denotifier.js GitHub Actions / Test
|
||
await XKit.css_map.getCssMap(); | ||
Check failure on line 13 in Extensions/denotifier.js GitHub Actions / Test
|
||
const { navItem, notificationBadgeIn } = XKit.css_map.cssMap; | ||
Check failure on line 14 in Extensions/denotifier.js GitHub Actions / Test
|
||
XKit.tools.add_css(`.${navItem}:not([title='Messages']) .${notificationBadgeIn} { display: none !important; }`, "denotifier"); | ||
Check failure on line 15 in Extensions/denotifier.js GitHub Actions / Test
|
||
|
||
}, | ||
Check failure on line 17 in Extensions/denotifier.js GitHub Actions / Test
|
||
|
||
destroy: function () { | ||
Check failure on line 19 in Extensions/denotifier.js GitHub Actions / Test
Check failure on line 19 in Extensions/denotifier.js GitHub Actions / Test
Check failure on line 19 in Extensions/denotifier.js GitHub Actions / Test
|
||
this.running = false; | ||
XKit.tools.remove_css("denotifier"); | ||
} | ||
}); |