Chrome Extensions

Some random notes on Chrome Extensions:

A Browser Action appears as some added icon that e.g. opens some popup.html when clicked.

How to debug (e.g. where to see the console.log messages) each script:

  • Background script: In chrome://extensions/, there’s a link to “inspect views” or access the background page.
  • Content script: The active tab’s main console
  • popup.js: Right-click icon (or the popup.html) and click inspect element

Example permissions:

  • “activeTab”: to use
  • “contextMenus”: to do stuff with context menus
  • DB or something for the Chrome Extension is stored here:

    C:\Users\\AppData\Local\Google\Chrome\User Data\Default\Extensions\theextensionidsomestring
    When I removed an extension (from chrome://extensions/, it also deleted its theextensionidsomestring folder from there.

    Leave a Reply

    Your email address will not be published. Required fields are marked *