* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Saturday, July 19, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    Theater at Santa Fe’s San Isidro Plaza will be converted into IMAX, family entertainment venue – Santa Fe New Mexican

    Santa Fe’s San Isidro Plaza Theater Transforms into Exciting IMAX Family Entertainment Venue

    B&B Theatres will open massive entertainment complex in Texas – The Business Journals

    B&B Theatres will open massive entertainment complex in Texas – The Business Journals

    Rough times for broadcast networks illustrate changing media landscape – New Haven Register

    Broadcast Networks Confront Turbulent Times in a Rapidly Changing Media Landscape

    Black River Entertainment Adds Traci Hite As Director Of Promotion, Southeast – MusicRow.com

    Black River Entertainment Welcomes Traci Hite as New Director of Southeast Promotion

    Entertainment Business Master’s Grad Launched Nonprofit to Nurture Emerging Artists – Full Sail University

    Entertainment Business Master’s Grad Launched Nonprofit to Nurture Emerging Artists – Full Sail University

    Review: At the Huntington, the New Hollywood String Quartet recalls legendary studio musicians – Los Angeles Times

    Review: At the Huntington, the New Hollywood String Quartet recalls legendary studio musicians – Los Angeles Times

  • 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
    A major AI training data set contains millions of examples of personal data – MIT Technology Review

    A major AI training data set contains millions of examples of personal data – MIT Technology Review

    Simpson College to purchase medical simulation technology with grant funds – Iowa Capital Dispatch

    Simpson College to purchase medical simulation technology with grant funds – Iowa Capital Dispatch

    SailGP Technologies officially launches new center of excellence in technology & innovation – Sail-World.com

    SailGP Technologies officially launches new center of excellence in technology & innovation – Sail-World.com

    Victorville’s new gunfire-detecting technology already making strides, city says – NBC Los Angeles

    Victorville’s New Gunfire-Detecting Technology Is Already Making a Difference, City Officials Say

    Guest columnist: China cutting corners on technology – The State Journal

    China’s Rapid Tech Advances Spark Worries About Cutting Corners

    Sentrycs’ Cyber Over RF technology integrated into Rafael’s combat-proven Drone Dome system – Defence Industry Europe

    Sentrycs’ Cyber Over RF Technology Boosts Rafael’s Battle-Tested Drone Dome System

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    Theater at Santa Fe’s San Isidro Plaza will be converted into IMAX, family entertainment venue – Santa Fe New Mexican

    Santa Fe’s San Isidro Plaza Theater Transforms into Exciting IMAX Family Entertainment Venue

    B&B Theatres will open massive entertainment complex in Texas – The Business Journals

    B&B Theatres will open massive entertainment complex in Texas – The Business Journals

    Rough times for broadcast networks illustrate changing media landscape – New Haven Register

    Broadcast Networks Confront Turbulent Times in a Rapidly Changing Media Landscape

    Black River Entertainment Adds Traci Hite As Director Of Promotion, Southeast – MusicRow.com

    Black River Entertainment Welcomes Traci Hite as New Director of Southeast Promotion

    Entertainment Business Master’s Grad Launched Nonprofit to Nurture Emerging Artists – Full Sail University

    Entertainment Business Master’s Grad Launched Nonprofit to Nurture Emerging Artists – Full Sail University

    Review: At the Huntington, the New Hollywood String Quartet recalls legendary studio musicians – Los Angeles Times

    Review: At the Huntington, the New Hollywood String Quartet recalls legendary studio musicians – Los Angeles Times

  • 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
    A major AI training data set contains millions of examples of personal data – MIT Technology Review

    A major AI training data set contains millions of examples of personal data – MIT Technology Review

    Simpson College to purchase medical simulation technology with grant funds – Iowa Capital Dispatch

    Simpson College to purchase medical simulation technology with grant funds – Iowa Capital Dispatch

    SailGP Technologies officially launches new center of excellence in technology & innovation – Sail-World.com

    SailGP Technologies officially launches new center of excellence in technology & innovation – Sail-World.com

    Victorville’s new gunfire-detecting technology already making strides, city says – NBC Los Angeles

    Victorville’s New Gunfire-Detecting Technology Is Already Making a Difference, City Officials Say

    Guest columnist: China cutting corners on technology – The State Journal

    China’s Rapid Tech Advances Spark Worries About Cutting Corners

    Sentrycs’ Cyber Over RF technology integrated into Rafael’s combat-proven Drone Dome system – Defence Industry Europe

    Sentrycs’ Cyber Over RF Technology Boosts Rafael’s Battle-Tested Drone Dome System

    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

A major AI training data set contains millions of examples of personal data – MIT Technology Review

A major AI training data set contains millions of examples of personal data – MIT Technology Review

July 18, 2025
Dave Portnoy unites FOX Sports and Barstool with new football, basketball coverage deal – Fox News

Dave Portnoy unites FOX Sports and Barstool with new football, basketball coverage deal – Fox News

July 18, 2025
To see and not be seen: Carangids hide behind sharks to prey on fish – Cattano – 2025 – Ecology – ESA Journals

Mastering the Art of Stealth: How Carangids Turn Sharks into Living Shields to Outsmart Their Prey

July 18, 2025
Science labs move ‘a hammer blow’, says MP – Yahoo

Science labs move ‘a hammer blow’, says MP – Yahoo

July 18, 2025
American science to soon face its largest brain drain in history – Big Think

America’s Science Community Confronts Its Biggest Brain Drain in History

July 18, 2025
Longhorns Daily News: Austin’s fast-paced lifestyle helped inspire former Texas WR Brenen Thompson to transfer to new school – Burnt Orange Nation

Longhorns Daily News: Austin’s fast-paced lifestyle helped inspire former Texas WR Brenen Thompson to transfer to new school – Burnt Orange Nation

July 18, 2025
China’s path to world dominance is being laid by President Trump’s policies, including in Alaska – Alaska Beacon

China’s path to world dominance is being laid by President Trump’s policies, including in Alaska – Alaska Beacon

July 18, 2025
Wall Street’s Big 7 Are Now Bigger Than China’s Entire Economy – MSN

Wall Street’s 7 Biggest Titans Now Outpace the Entire Chinese Economy

July 18, 2025
Bad Bunny, Travis Scott, Saweetie, and All the Songs You Need to Know This Week – Yahoo

Bad Bunny, Travis Scott, Saweetie, and This Week’s Must-Listen Hits

July 18, 2025
‘I just couldn’t stop crying’: How prison affects Black men’s mental health long after they’ve been released – The Conversation

I Just Couldn’t Stop Crying’: The Deep and Lasting Impact of Prison on Black Men’s Mental Health

July 18, 2025

Categories

Archives

July 2025
MTWTFSS
 123456
78910111213
14151617181920
21222324252627
28293031 
« Jun    
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 (727)
  • Economy (750)
  • Entertainment (21,635)
  • General (15,970)
  • Health (9,788)
  • Lifestyle (758)
  • News (22,149)
  • People (752)
  • Politics (760)
  • Science (15,967)
  • Sports (21,248)
  • Technology (15,733)
  • World (734)

Recent News

A major AI training data set contains millions of examples of personal data – MIT Technology Review

A major AI training data set contains millions of examples of personal data – MIT Technology Review

July 18, 2025
Dave Portnoy unites FOX Sports and Barstool with new football, basketball coverage deal – Fox News

Dave Portnoy unites FOX Sports and Barstool with new football, basketball coverage deal – Fox News

July 18, 2025
  • 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