Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

smartlook/element-picker

Repository files navigation

Smartlook element picker

Your task is to implement a component generally known as the Element Picker. Its main functionality is very simple: it allows users to select an element and returns a selector that can be used to target this element.

This repository contains simple Chrome extension with hot reload support to help you start with the assigment.

You can read more about Chrome extension development on an official docs page. You might find useful this pacexy/chrome-extension-typescript-starter for complex setup or our React or Vue templates.

Installation

This project requires Node.js and NPM package manager to run. In order to continue please ensure you installed those prerequisites first.


npm install                   # install all packages

npm run lint                  # run eslint & prettier linter
npm run lint:fix              # run eslint & prettier linter with automatic fixes

npm run dev                   # run extension in development mode (hot-reload)

Extension installation

Open Chrome and navigate to chrome://extensions/ page. In the right top corner enable Developer mode after that click on Load unpacked (top left corner) and select extension from /element-picker/dist. Note you need to perform this step only once hopefully.

image

Project structure

.
├── node_modules       # NPM packages
├── dist               # Build output
├── src                # Source files
│   ├──	content        # Contains code that gets executed on every page load
│   ├── popup          # Contains code that gets executed when you click on extension icon
│   ├── service-worker # Contains background script (needed only for hot reload)   
├── LICENSE
└── README.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published