Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add text in google chrome extension icon

I want to add a text showing the minutes spent by the user in the running activity in my Google Chrome extension that called pharaohs Time tracker can see it here https://chrome.google.com/extensions/developer/edit/cegaadncabdacaplfeondbaodibgjfhi?hl=en

I can't find anything in there API although a lot of people using it like ext called go to IMDB

like image 414
M Emad Hegab Avatar asked Dec 12 '22 20:12

M Emad Hegab


1 Answers

You can overlay a badge on your browser action by calling chrome.browserAction.setBadgeText (see also chrome.browserAction.setBadgeBackgroundColor to style the badge).

like image 98
oldestlivingboy Avatar answered Dec 23 '22 14:12

oldestlivingboy