Giter Club home page Giter Club logo

bookmarklet-to-chrome-extension-boilerplate's Introduction

Bookmarklet to Chrome Extension Template

This is an updated version of bookmarklet-to-chrome-extension-boilerplate by micmro. In this version, the extension code is updated from V2 to V3.

Template to port your bookmarklet to a Chrome extension.

Simply copy your bookmarklet code into bookmarklet-code.js and test it localy, update the metadata and you're ready to pack it.

In order to publish your extension follow the steps here.

Test the chrome extension localy

The documentation below is from the Chrome Developer site, augmented with screenshots from this Template project:

Extensions that you download from the Chrome Web Store are packaged up as .crx files, which is great for distribution, but not so great for development. Recognizing this, Chrome gives you a quick way of loading up your working directory for testing. Let's do that now.

Visit chrome://extensions in your browser (or open up the Chrome menu by clicking the icon to the far right of the Omnibox: The menu's icon is three horizontal bars. and select Extensions under the Tools menu to get to the same place).

Ensure that the Developer mode checkbox in the top right-hand corner is checked.

alt text

Click Load unpacked extension… to pop up a file-selection dialog.

alt text

Navigate to the directory in which your extension files live, and select it.

Alternatively, you can drag and drop the directory where your extension files live onto chrome://extensions in your browser to load it.

If the extension is valid, it'll be loaded up and active right away! If it's invalid, an error message will be displayed at the top of the page. Correct the error, and try again.

alt text

alt text

Updating the manifest.json metadata

You'll need to update the following keys in the manifest.json file:

  • name Name of the chrome extension
  • description Expain your chrome extension
  • homepage_url (optinal) Your projects website, e.g. github repo
  • author Your or your organizations name
  • icons Icon in various sizes for the Chrome Webstore
  • default_icon Icon for the browser extension bar

##More Check out bookmarklet-to-firefox-addon-boilerplate if you want to port your bookmarklet to Firefox as well.

bookmarklet-to-chrome-extension-boilerplate's People

Contributors

jamesx0416 avatar micmro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.