Skip to content

wenqili/chrome-extension-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

chrome-extension-workshop

We will go through

  • How to make a bookmarklet
  • How to make a chrome extension
  • Chrome browser API

in this workshop.

What is a bookmarklet


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:

Keys of making a bookmarklet


  1. We can “link” to JavaScript code
    // This is how we share bookmarklet through you website
    <a href="javascript: alert("Yo~")">my alert</a>
  2. Browser allow you drag a link to bookmarks bar
  3. Bookmarklet executes the JavaScript linked to bookmarklet only in this page, just like typing in the console

Resource


What is a chrome extension


Small programs that add new features to your browser and personalize your browsing experience. Some really good ones:

Basic Steps of making a chrome extension


  1. manifest.json
    Capabilities, names of files, permissions
  2. content scripts
    • AKA persistent bookmarklets
    • Injected onto any/every page you want
    • cannot use most of Chrome APIs
  3. background scripts
    • Used to communicate with Chrome (via APIs)
    • Shared between all tabs
    • running all the time

Let's make pop-up windows

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published