Coder Social home page Coder Social logo

Comments (3)

alechemy avatar alechemy commented on May 27, 2024 1

As someone new to this toolkit, and WebExtension development generally, I think I understand where @jameschensmith is coming from -- I encountered the same issue myself.

The README for this project instructs the user to begin development by running webextension-toolbox dev <vendor>, e.g. webextension-toolbox dev chrome.

It's not entirely clear where to go from here.

Users such as myself will likely look to the terminal output, which includes:
webpack-webextension-plugin listens on ws://localhost:35729
and may then reasonably conclude that they need to visit either ws://localhost:35729 or localhost:35729, neither of which will work.

If I understand correctly, the 'actual' dev workflow after running webextension-toolbox dev is to install the compiled extension into the correct browser. For me, this meant opening Chrome, navigating to chrome://extensions/, clicking "Load unpacked", then selecting the dist/chrome project directory.

It'd be nice if any of the above info were included in the README.

from webextension-toolbox.

balcsida avatar balcsida commented on May 27, 2024

Hi @james-r-smith,

My apologies for the late reply. Happy new year to you!
I'm not sure what would you like to achieve with your extension. If I suspect correctly, you would like to see HTML page after you load your extension.
While that is certainly possible, WebExtensions are a little bit different from a normal Web application: you can extend the capabilities of your browser and/or the pages you visit. For example, I'm using Refined GitHub to enhance my experience on github.com. The other example would be Grammary, which checks my grammar mistakes while I'm typing this text to the text box.

WebExtension Toolbox helps with the development to extensions which are similar to the examples above. If you use the dev mode, Load Temporary Add-on... in Firefox, and you develop an extension for github.com, you don't need to refresh github.com manually every time you make a change in your extension code, because WebExtension Toolbox will do that for you.
Additionally, if you would like to develop a cross-browser extension - that works in Chrome, Firefox, Opera - you don't really need to worry about that as it includes the necessary library to polyfill the differences between those browsers.

For more information, I would recommend you to check out the Browser Extensions documentation on MDN. If you have any further question I can help with, please, let me know, and I will try to answer them.

Kind regards,
@balcsida

from webextension-toolbox.

balcsida avatar balcsida commented on May 27, 2024

Hi @james-r-smith,

I was wondering if you have had time to check my previous comment.
If it is not a problem for you, I will go ahead and close this issue now.
Please let me know if you have any further question regarding this matter.

Kind regards,
@balcsida

from webextension-toolbox.

Related Issues (20)

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.