We will go through
- How to make a bookmarklet
- How to make a chrome extension
- Chrome browser API
in this workshop.
a small software application stored as a bookmark in a web browser, which typically allows a user to interact with the currently loaded web page in some way.
examples:
- We can “link” to JavaScript code
// This is how we share bookmarklet through you website <a href="javascript: alert("Yo~")">my alert</a>
- Browser allow you drag a link to bookmarks bar
- Bookmarklet executes the JavaScript linked to bookmarklet only in this page, just like typing in the console
Small programs that add new features to your browser and personalize your browsing experience. Some really good ones:
- manifest.json
Capabilities, names of files, permissions - content scripts
- AKA persistent bookmarklets
- Injected onto any/every page you want
- cannot use most of Chrome APIs
- background scripts
- Used to communicate with Chrome (via APIs)
- Shared between all tabs
- running all the time