* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Friday, March 13, 2026
Earth-News
  • Home
  • Business
  • Entertainment

    Get Inspired This Weekend with Fresh Ideas for Going Green

    Seattle’s Wing Luke Museum Announces Exciting New Executive Director

    Golden Nugget Owner Eyes Major Acquisition of Caesars Entertainment

    Inspired Entertainment Unveils Exciting Q4 2025 Earnings Results

    Inspired Entertainment Q4 2025: Record-Breaking Margins Outshine EPS Challenges

    Live Nation and DOJ Settle: What This Means for Live Entertainment Fans

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology

    Eight Midwestern Universities Unite to Launch Innovative Technology Hub in San Francisco

    Top Industry Experts Reveal Crucial Insights on Globant SA and Uber Technologies

    JIATF 401 Publishes Guide to Counter-Drone Technology and Privacy Protections – U.S. Department of War (.gov)

    Could This Technology Pose the Greatest Threat to American Democracy?

    Breakthrough Discovery: 80 Key Proteins Uncovered in Plasma Membrane Repair

    Cheyenne Police Invite Community to Explore New Flock Safety Technology Together

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment

    Get Inspired This Weekend with Fresh Ideas for Going Green

    Seattle’s Wing Luke Museum Announces Exciting New Executive Director

    Golden Nugget Owner Eyes Major Acquisition of Caesars Entertainment

    Inspired Entertainment Unveils Exciting Q4 2025 Earnings Results

    Inspired Entertainment Q4 2025: Record-Breaking Margins Outshine EPS Challenges

    Live Nation and DOJ Settle: What This Means for Live Entertainment Fans

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology

    Eight Midwestern Universities Unite to Launch Innovative Technology Hub in San Francisco

    Top Industry Experts Reveal Crucial Insights on Globant SA and Uber Technologies

    JIATF 401 Publishes Guide to Counter-Drone Technology and Privacy Protections – U.S. Department of War (.gov)

    Could This Technology Pose the Greatest Threat to American Democracy?

    Breakthrough Discovery: 80 Key Proteins Uncovered in Plasma Membrane Repair

    Cheyenne Police Invite Community to Explore New Flock Safety Technology Together

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
Earth-News
No Result
View All Result
Home Technology

Show HN: I made a CLI tool to create web extensions with no build configuration

April 30, 2024
in Technology
Show HN: I made a CLI tool to create web extensions with no build configuration
Share on FacebookShare on Twitter

Plug-and-play, zero-config, cross-browser extension development tool.

Screenshot 2024-03-25 at 13 06 15

Logo

Create cross-browser extensions with no build configuration.

Create A New Extension — How to create a new extension.
Get Started Immediately — Get work done in no time.
I have An Extension – Use only specific parts of Extension.js.

Extension.js is a plug-and-play, zero-config, cross-browser extension development tool with built-in support for TypeScript, WebAssembly, React, and modern JavaScript.

npx extension create my-extension
cd my-extension
npm run dev

A new browser instance will open up with your extension ready for development.

You are done. Time to hack on your extension!

create-a-new-extension.mp4

Kickstart Any Sample from Chrome Extension Samples

Dive right into development by starting with a sample from the Chrome Extension Samples repository. It’s a great way to get acquainted with best practices and save time:

Open your terminal.
Navigate to the directory where you want your project.
Run the command:
npx extension dev
Replace with the name of the sample you wish to use from Chrome Extension Samples.

See the example below where we request the sample page-redder from Google Chrome Extension Samples.

npx extension dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/functional-samples/sample.page-redder –browser=edge

chrome-extension-sample-page-redder-on-edge.mp4

Extension.js supports a variety of browsers, including Microsoft Edge. To start an Edge-compatible extension, simply:

Open your terminal.
Navigate to your desired project directory.
Execute:
npx extension dev –browser=edge
Tailor your command by replacing with the specific sample you’re interested in.

See the example below where we request the sample magic8ball from from Google Chrome Extension Samples using Edge as the runtime browser.

npx extension dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/topSites/magic8ball –browser=edge

chrome-extension-sample-magic8ball-on-edge.mp4

Run Mozilla Add-Ons Using Edge

Bridge the gap between Firefox and Edge by running Mozilla Add-Ons using Edge:

Navigate to your project directory.
Use the command:
npx extension dev –browser=edge –polyfill=true
This will fetch a Mozilla Add-On and adapt it for Edge.

See the example below where we request the sample Apply CSS from MDN WebExtensions Examples using Edge as the runtime browser.

npx extension dev https://github.com/mdn/webextensions-examples/tree/main/apply-css –browser=edge –polyfill=true

mdn-webextensions-examples-apply-css-on-edge.mp4

usage-with-an-existing-extension.mp4

If you have an existing extension which is using a package manager, you can install the Extension.js package and manually create the scripts used to run your extension. See the demo above or follow these instructions to get it done:

Step 1 – Install extension as a devDependency

npm install extension –save-dev

Step 2 – Link your npm scripts with the executable Extension.js commands

{
“scripts”: {
“build”: “extension build”,
“dev”: “extension dev”,
“start”: “extension start”
},
“devDependencies”: {
// …other deps,s
“extension”: “latest”
}
}

Done. You are all set!

To develop the extension, run npm run dev.
To visualize the extension in production mode, run npm run start.
To build the extension in production mode, run npm run build.

Using a specific browser for development

☑️=Likely works but no browser runner support yet.

If you want to target a specific browser, just pass the –browser flag to the dev/start command (based on the list available above), like npx extension dev path/to/extension –browser=edge.

Hint
Pass –browser=”all” to load all available browsers at once.

extension dev –browser=all
Screenshot 2024-03-25 at 13 06 15

MIT (c) Cezar Augusto.

>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : Hacker News – https://github.com/cezaraugusto/extension.js

Tags: Createextensionstechnology
Previous Post

Autotab (YC S23) Is Hiring Founding Engineers to Build the Digital Robot

Next Post

Bytecode VMs in Surprising Places

Greenpeace Warns of Imminent Ecological Catastrophe from Potential Oil Spills

March 13, 2026

I’m an NIH Whistleblower: Why the Scientific Community Must Embrace Politics

March 13, 2026

Enormous Tyrannosaur Leg Bone Uncovers a 10,000-Pound Prehistoric Giant

March 13, 2026

Kate Middleton Shares Candid Reflections on Life After Her Cancer Battle

March 13, 2026

USA and Canada Gear Up for Rivalry Showdown as Hockey Gold Medalist Joins the Action

March 13, 2026

MND Local: Los Cabos’ ever changing tourist economy – Mexico News Daily

March 13, 2026

Get Inspired This Weekend with Fresh Ideas for Going Green

March 13, 2026

AI Tools in Medical Education and Health Care: Climate Impact and Sustainable Practices | Newswise – Newswise

March 13, 2026

Gilli­brand in­tro­duces bill aimed to stop financial predators from scamming seniors – Spectrum News

March 13, 2026

Eight Midwestern Universities Unite to Launch Innovative Technology Hub in San Francisco

March 13, 2026

Categories

Archives

March 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Feb    
Earth-News.info

The Earth News is an independent English-language daily published Website from all around the World News

Browse by Category

  • Business (20,132)
  • Ecology (1,115)
  • Economy (1,133)
  • Entertainment (22,010)
  • General (20,375)
  • Health (10,171)
  • Lifestyle (1,147)
  • News (22,149)
  • People (1,136)
  • Politics (1,151)
  • Science (16,349)
  • Sports (21,635)
  • Technology (16,116)
  • World (1,126)

Recent News

Greenpeace Warns of Imminent Ecological Catastrophe from Potential Oil Spills

March 13, 2026

I’m an NIH Whistleblower: Why the Scientific Community Must Embrace Politics

March 13, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

Go to mobile version