Comments (4)
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.
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.
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.
Oh, I don't know how to do that, I'm not programmatically well-versed.
from whatsapp-web-incognito.
Related Issues (20)
- WhatsApp Web gets stuck on "Loading your chats" when linking your device HOT 1
- Reactions remain unread HOT 19
- Jjj
- WhatsApp kh
- Feature Request: Script of the extension to work with Violent Monkey/TamperMonkey HOT 1
- Show Device of Messages stopped working HOT 35
- "Failed to restore message" HOT 21
- version 2.0.2+ doesn't work on Firefox: service_worker is not supported HOT 14
- Media stories not showing. (Only text stories) HOT 1
- Not syncing messages properly HOT 13
- Pinned, archived channels not synced HOT 3
- "Don't send "Last Seen" and "Typing" updates" checkbox changes don't update immediately HOT 9
- Restore edited message HOT 1
- Extension breaks after WhatsApp version 2.3000 HOT 31
- Icon appears twice in status bar sometimes [Race] HOT 1
- Profile Photo Change Notification HOT 2
- Could not decrypt Noise packet (multi_device.js:104 ReferenceError: pako is not defined) HOT 1
- Modal window is greyed out and freeze the page
- Bugs and Improvement HOT 1
- Icon disappear right after unlocking WhatsApp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-web-incognito.