I want to display text of the current video playback speed (playbackRate) on top of my toolbar icon.
Preferably, on any click anywhere on the page, I want the extension to get the current playback speed and display/update it on the toolbar icon.
How would you do this?
browserAction.setBadgeText() is used to set toolbar icon text but it shows up to to 3 characters (used to be 4 before).
browser.browserAction.setBadgeText({text: '123'});