Git Product home page Git Product logo

webext-redux-examples's People

Contributors

nikosgi avatar nomoreboredom avatar tshaddix avatar vhmth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webext-redux-examples's Issues

package.json should be updated with latest packages

I based my project off of this boilerplate, but was stuck for several hours due to the packages in package.json being quite old. They should be updated, and the code should be updated to go along with it.

I'll probably work on this myself in the next few days if I have time.

Where do i inject scripts into the page?

I am working with the clicker-key example and i want to figure out how to inject a script that reads the youtube player current time and sends it per message to my redux store.
Im trying so many things but i somehow have issues injecting scripts into the body of the page.
The only way it seems to work is like this:

const script = document.createElement('script');
script.type = "text/javascript";
script.text = "const player = document.getElementById('movie_player'); console.log(player.getCurrentTime());";
document.body.insertBefore(script, document.body.childNodes[0]);

Every other approach, either gives me an "getCurrentTime() is not a function", or "is not a valid DOM element", or issues with importing the React module.

Any suggestions for a proper solution to get the curretn youtube player time on a click event with sendMessage from the popup interface?

Would help me a lot, been batteling myelf with this problem for days.
Thanks a lot

Props in the first execution of popup.html or content-script.

It appears that every time I pop the popup.html or when the content-script runs for the first time in a tab, the function :

const mapStateToProps = (state) => {
  return {
    count: state.count
  };
};

executes 2 times. The first time, the props ( 'count' in this example) passes as undefined to the render function

  render() {
    console.log(this.props.count);
    return (
      <div>
        Count: {this.props.count}
      </div>
    );
  }

, and the second time it passes the normal value stored in the state.

Any idea what causes this issue?

babel-register not loading

After I download the project. installed all the dependencies and run the project it shows babel-register not loading error. still it runs but I can't use spread operator. wherever I use spread operator application crashes. I need help please.

Development environment

This is more a question than an issue, I would like to know what would be the development setup for these examples, I tried using boiler plates like this but it's all too convoluted for my use case.

Ideas?.

Thanks

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.