GithubHelp home page GithubHelp logo

pmrt / whatshidden Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 569 KB

What's hidden? - Read revoked WhatsApp messages

License: MIT License

JavaScript 99.28% Shell 0.72%
deleted messages raspberry-pi recalled removed revoked unsend whatsapp whatsapp-web

whatshidden's People

Contributors

pmrt avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

inobrega marciowb

whatshidden's Issues

Attachments directory

Decrypt the media files into an 'attachments' directory, instead of just the sender directory

ERR_IMPORT_ASSERTION_TYPE_MISSING

TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///Users/mymac/MyFolders/res/proj/api/whatshidden/package.json" needs an import assertion of type "json"
at new NodeError (node:internal/errors:372:5)
at validateAssertions (node:internal/modules/esm/assert:82:15)
at defaultLoad (node:internal/modules/esm/load:24:3)
at ESMLoader.load (node:internal/modules/esm/loader:407:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:326:22)
at new ModuleJob (node:internal/modules/esm/module_job:66:26)
at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:345:17)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:304:34)
at async ModuleWrap. (node:internal/modules/esm/module_job:82:21)
at async Promise.all (index 12) {
code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}

Screen Shot 2022-06-07 at 2 42 47 PM

NodeJs : v17.8.0
npm : 8.12.1

Ability to change executablePath with argument -b (browser)

Puppeteer downloads a chromium browser which is not compatible with ARM architectures (eg. Raspberry Pi). It would be interesting to be able to change the browser that Puppeteer will use.

In my case (using a Raspberry Pi 2 Model B), upgrading from jessie to stretch and adding this line...

this._browser = await puppeteer.launch({
            headless: isProd,
            devtools: !isProd,
            // this one
            executablePath: 'chromium-browser',
        });

...here

this._browser = await puppeteer.launch({
headless: isProd,
devtools: !isProd,
});

Will work, as upgrading to stretch installed a chromium-browser compatible with ARM and Puppeteer does use it.

Also, it would be interesting to see it added in the docs for people who wants to use it on a Raspberry Pi

Status check every 15 min

There is a check every 15 min but just for login.

I noticed that sometimes a pop-up shows up asking the user whether he wants to use the session here or in another window if the session is used unintentionally in other computer, for all these things a different check is needed where:

  1. The app should check if the page is in a state where it can't log the messages
  2. The page should refresh itself with a warning message
  3. Then it should wait for login with a timeout and throw an error if it was unsuccessful

basic bash updater using git

A basic bash updater which uses git for update to the last stable version (master branch) would be great.

Also, add in the docs how to use it.

Remove babel-node

This project uses babel-node because ESModules. Adding the following to the package.json file...:

// package.json
{
    "type": "module" 
}

...will effectively remove the need for babel-node, which is a pain to debug because the lines doesn't match in stacktraces.

Node v12 is needed (which is —right now— the LST version), so this change requires to update the readme requirements.

remove unneeded dependencies

Remove deps we don't need anymore:

npm:

  • babel-node
  • @babel/cli
  • @babel/core
  • @babel/node
  • @babel/present-env

files:

  • .babelrc

Chrome headless leaking original user-agent

When executing in headless and having a session stored, puppeteer will leak the original user-agent in some requests, leading to WhatsApp to detect chromeless, prompting user for browser update/change.

It won't work if the original user-agent with the string 'HeadlessChrome' is leaked.

Update readme

Explain:

  • How does the new check work and why
  • add limitations section: WhatsApp Web: only 1 session at a time and only when you're not in the conversation
  • add how to update section
  • add usage section
  • How to close session

Get WAGlobals in hook/connect.js

This file is injected so no globals can be imported and it uses fixed values right now. It needs a new way to pass WAGlobals down

Log state between QRCode scan and login

After scanning the QRCode it takes a while until the login process is complete. In slow computers like Raspberry Pi it's even worse. It'd be a good idea to inform about the state at this point.

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.