Giter Club home page Giter Club logo

Comments (4)

tomer8007 avatar tomer8007 commented on May 24, 2024

I never worked with the Electron framework, but looks like there are plentry of resources on the internet for trying to insert Chrome extensions into Electron apps (like this, this and more).

I don't know whether or not the DOM is the same in the standalone app, though. That's an important question.

I can tell you that at least if you're trying to inject these files without Chrome-specific adaptations you'd have to fiddle with core_injection.js and background.js.

core_injection.js is the first file that runs as a content script and injects the other scripts to the real DOM, and it's using the chrome.extension API (so you'll need to change this line).

background.js uses Chrome APIs too to save the settings of the user persistently, so an alternative way of doing that would be needed.

Also it's important to make the overall injection so that core_injection.js will run before any other WhatsApp script, otherwise the WebSocket interception won't work.

from whatsapp-web-incognito.

timea-techgirl avatar timea-techgirl commented on May 24, 2024

The app.asar can be found in the nupkg.
https://web.whatsapp.com/desktop/windows/release/x64/WhatsApp-0.3.4479-full.nupkg

I opened it with winrar and extracted the app.asar with node.

What do I need to check and find out if it's the same. If it's not the same, you can close this issue. Not worth it.

from whatsapp-web-incognito.

tomer8007 avatar tomer8007 commented on May 24, 2024

I would start by running document.getElementsByClassName("_3j8Pd") in the javasciprt console and see if I get all the menu items at the top.

If you get them, I think it's a pretty good indication it's the same.

from whatsapp-web-incognito.

timea-techgirl avatar timea-techgirl commented on May 24, 2024

Oh, I don't know how to do that, I'm not programmatically well-versed.

from whatsapp-web-incognito.

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.