2. MAKE YOUR OWN CHROME EXTENSION
OVERVIEW
▸Chrome extension increases chrome’s functionalities
▸Compressed (.crx) file of HTML, JavaScript, CSS, assets
and manifest,json
▸Can modify DOM elements.
▸Access to all chrome’s APIs such as tab creation, window
switching, etc.
3. MAKE YOUR OWN CHROME EXTENSION
TWO TYPES
▸ Page Actions
▸ Browser Actions
** Give Examples **
6. TEXT
CONTENT SCRIPT
‣ Injected javascript code into the web page
‣ Modifies representation of content of the page
‣ Can’t access chrome extension functions
‣ Act as if a part of the web page it is injected into
‣ Give example
9. TEXT
▸Often needed to pass data from popup to content script or
content script to background and so on
▸All interactions between these 3 instances are done via
message passing
▸give example
MESSAGE PASSING