Display Chrome extension popup at middle of page -
i new writing chrome extensions , wondering how can following.
how can make popup(when clicks on extension icon) display @ center of webpage instead of displaying popup @ top right corner ?
use chrome.browseraction.onclicked.addlistener(), fires "when browser action icon clicked." inject popup manually dom of supplied tab, using chrome.tabs.executescript().
also consider adding context-menu item, might make more sense user depending on extension does.
Comments
Post a Comment