• Stars
    star
    851
  • Rank 53,558 (Top 2 %)
  • Language
    JavaScript
  • License
    The Unlicense
  • Created about 8 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Chrome Extension Hot Reloader

Chrome Extension Hot Reloader

Watches for file changes in your extension's directory. When a change is detected, it reloads the extension and refreshes the active tab (to re-trigger the updated scripts).

Here's a blog post explaining it (thanks to KingOfNothing for the translation).

Features

  • Works by checking timestamps of files
  • Supports nested directories
  • Automatically disables itself in production
  • And it's under a 40 lines of code!

How To Use

  1. Drop hot-reload.js to your extension's directory.

  2. Put the following into your manifest.json file:

    "background": { "scripts": ["hot-reload.js"] }

Also, you can simply clone this repository and use it as a boilerplate for your extension.

Installing From NPM

It is also available as NPM module:

npm install crx-hotreload

Then use a require (or import) to execute the script.

Limitations

More Repositories

1

stacktracey

Parses call stacks. Reads sources. Clean & filtered output. Sourcemaps. Node & browsers.
JavaScript
218
star
2

ololog

A better console.log for the log-driven debugging junkies
JavaScript
215
star
3

ansicolor

A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
JavaScript
119
star
4

panic-overlay

Displays JS errors in browsers. Shows sources. Use with any framework. πŸ’₯✨
JavaScript
80
star
5

wyg

A new WYSIWYG editing experience for the modern web
JavaScript
76
star
6

as-table

A simple function that prints objects as ASCII tables. Supports ANSI styling and weird Unicode πŸ’© emojis – they won't break the layout.
JavaScript
62
star
7

expression

An interactive paint application driven by cellular automation (WebGL)
JavaScript
37
star
8

get-source

Fetch source-mapped sources. Peek by file, line, column. Node & browsers. Sync & async.
JavaScript
28
star
9

string.ify

A small, simple yet powerful JavaScript object stringifier / pretty-printer
JavaScript
26
star
10

what-code-is-faster

A browser-based tool for speedy and correct JS performance comparisons!
TypeScript
24
star
11

react-gpu

React WebGPU Renderer
TypeScript
24
star
12

life

A nice looking version of Life in WebGL
JavaScript
21
star
13

printable-characters

A little helper for handling strings containing zero width characters, ANSI styling, whitespaces, newlines, πŸ’©, etc.
JavaScript
19
star
14

pipez

Function sequencing reloaded
JavaScript
14
star
15

gop

Π“ΠžΠŸΠΠ˜Πš.EXE (Π’Π΅Π±-вСрсия)
JavaScript
14
star
16

git-slack-notify

Sends Slack notifications for new commits in Git repositories
JavaScript
13
star
17

mole

Mole Simulator
JavaScript
8
star
18

skychat

An example of WebRTC chat/paint app with distributed message history
HTML
8
star
19

es7-object-polyfill

A polyfill for missing Object.values / Object.entries
JavaScript
7
star
20

string.bullet

ASCII-mode bulleting for the list-style data
JavaScript
5
star
21

turing-2d

A toroidal turing machine (WebGL)
JavaScript
5
star
22

parcel-plugin-svg-react

Import SVG as React components (Parcel plugin)
JavaScript
5
star
23

chai-spies-decorators

Chai Spies + ES7 decorators
JavaScript
4
star
24

slack-js-console

A JavaScript interpreter for Slack channels
JavaScript
4
star
25

meta-fields

Meta-annotations for data structures in JavaScript
JavaScript
2
star
26

gop2

Π“ΠžΠŸΠΠ˜Πš-2.EXE
JavaScript
2
star
27

mutko

The simplest context menu translator for Chrome // WIP
JavaScript
2
star