Git Product home page Git Product logo

Comments (11)

OrangeDrangon avatar OrangeDrangon commented on August 14, 2024 1

I have an in progress regex that matches all of the verification code messages I have laying around.

play around with it and let me know if you have instances where it doesn't work. Note it is English specific.

https://regex101.com/r/Ay1OQw/1

from android-messages-desktop.

OrangeDrangon avatar OrangeDrangon commented on August 14, 2024 1

Here is the updated regex. The code will lowercase the string before matching to avoid special casing upper and lower case handling. https://regex101.com/r/VKFWu1/1

from android-messages-desktop.

myspivey avatar myspivey commented on August 14, 2024

This is just a website in a desktop wrapper. You should be able to double-click and copy. On Mac I get that option as I use this for the same thing.
image

from android-messages-desktop.

OrangeDrangon avatar OrangeDrangon commented on August 14, 2024

It may be possible to make something like this but it would be far from perfect. If I am ever bored and motivated I might make a pr with a build to test.

from android-messages-desktop.

jonasmellquist avatar jonasmellquist commented on August 14, 2024

This is just a website in a desktop wrapper. You should be able to double-click and copy. On Mac I get that option as I use this for the same thing. image

Yeah I use that multiple times per day, still wish is required less clicks :)

from android-messages-desktop.

innesst avatar innesst commented on August 14, 2024

I tried maybe 30 different ones I received, and these are the only ones that didn't find a match - all others found the proper code (all characters, no extra digits or duplicates).

Citi ID Code: ###### Only enter online to complete your account sign on request. Please DON'T share it. We'll NEVER call or text for this code.

Use ###### for two-factor authentication on Facebook.

from android-messages-desktop.

jonasmellquist avatar jonasmellquist commented on August 14, 2024

Here are a few from my recently received list that don't work with the current RegEx

PIN code: 686289
Username: j0016 Password: 7360
SMS passcodes: 1780575

from android-messages-desktop.

innesst avatar innesst commented on August 14, 2024

The ones below still don't work - but will work if I change "Code" to "code" / "Use" to "use"

Citi ID Code: 123456 Only enter online to complete your account sign on request. Please DON'T share it. We'll NEVER call or text for this code.

Use 12345 for two-factor authentication on Facebook.

from android-messages-desktop.

OrangeDrangon avatar OrangeDrangon commented on August 14, 2024

Sounds good. I will be calling toLowercase on the strings.

I need some feedback on the expected ergonomics. I cannot figure out how to make a button be part of the notification. I am thinking about providing an option to put the code on clipboard on notification click, if detected. Should that also prevent the opening of the window in that case. Should that be another option?

from android-messages-desktop.

innesst avatar innesst commented on August 14, 2024

I think your plan is good: If you click on notification the code should go to the clipboard and the window should not open. I think it should be off by default in case there's a potential privacy issue. I think everything is handled locally so there isn't. But some people might think that there is.

Would the code be highlighted in the notification? If so, you can have options as:
Detect OPT Codes
--Copy OPT to clipboard when clicking notification (Default) [greyed until above is selected]
----Don't open window when (Default) [greyed until above is selected]

If the code wouldn't be highlighted, there is no need to separate the first two options, because the user wouldn't be able to tell if a code was detected to know what would happen if clicked. So then the options would be:
Detect OPT Codes and Copy to Clipboard when Clicking Notification [greyed until above is selected]
----Don't open window when copying code (Default) [greyed until above is selected]

When a code is copied, it would be a great addition If you can have a popup saying "Code Copied" / "Code ##### Copied to Clipboard". It would help confirm that it happened and help someone figure out why the window didn't open if they expected it to.

from android-messages-desktop.

OrangeDrangon avatar OrangeDrangon commented on August 14, 2024

from android-messages-desktop.

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.