We now default to passive event listeners on all services,
as well as 100ms minimum granularity on setTimeout.
This is because many of the web-wrapped services constantly fire
totally unnecessary repaint events as fast as they can,
as well as actively listening for mouse events which also cause
unnecessary reflow.
On my machine, this cuts the CPU usage by ~70% while not affecting
the usability of any services.
There's a user-toggle available there. There's not a per-service
option for the ServiceList because it shouldn't affect anything
except in truly abnormal cases. If there needs to be one, we can add
it.
Also go back to isolation between js_unread and custom_js as a result.
This counts as a FLAG DAY. js_unread NOT being used for badge updates
needs to be moved to custom_js.
If you don't want the host website to be able to access your
functions and variables, use block-scoped declarations such as 'let'
and 'const' instead of 'var'.
We've completely overhauled badge updates by introducing
a callable function which should cover the standard case.
We also allow separate custom JS and JS just for badge updates.
We also make the service editing box taller by default.
We fix the logging for injected stuff to actually remain accurate.
And replace each js_unread in each service with modernized version.
We allow for separate custom badge updates and custom JS to
avoid doing unnecessary title event hooking allow overrides in a
sensible order.
Also remove Yahoo messenger service, as it was shutdown earlier in
July.
Also make them more sensible and user-friendly overall, relatively.
Update README with the commands and better instructions.
Important: This ensures that the commands issued by build are
cross-platform in nature instead of hoping. rimraf, cpy, etc.
Remove the option to "toggle" it from the menu, because it never did
anything when set to always on, and it'd never be useful to close it
from there as opposed to the "x", which also doesn't work with
"always on".
You'll have to deselect "always on status bar" for your already existing
services.
Closes#15
Squashed commit of the following:
commit d661565c25
Author: Ryan Zumstein <rzumstein@users.noreply.github.com>
Date: Thu May 31 00:10:26 2018 -0500
Fix Gmail important count
commit 30abb3a3c0
Author: rzumstein <rzumstein@users.noreply.github.com>
Date: Mon May 21 01:25:45 2018 -0500
Show notifications in new Gmail interface