Comments (11)
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.
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.
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.
from android-messages-desktop.
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.
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.
Yeah I use that multiple times per day, still wish is required less clicks :)
from android-messages-desktop.
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.
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.
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.
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.
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.
from android-messages-desktop.
Related Issues (20)
- Conversation Contents Not Showing HOT 2
- [5.4.0] Option to flash tray icon with new message
- CSS Injection HOT 6
- Flatpak Support HOT 2
- Cannot stay logged in when using Google Fi mobile provider HOT 4
- App Badge HOT 4
- Show New Message Count in Mac Top Bar
- Window size and position issue when opening app HOT 1
- Add emoji react support for messages received from iOS users HOT 2
- Tray icon named "electron"
- Minimize to Tray by Clicking on Tray Icon HOT 1
- Could not sign into Google Account (Google Fi) HOT 1
- Automatically Increment User Agent Version
- Emoji reactions to non-RCS messages threads and group chats HOT 1
- Stuck showing Sending... HOT 5
- Keeps asking for microphone permissions on macOS HOT 3
- Implement send-later (scheduled send) HOT 3
- support the new 'quoted msg' reply style HOT 1
- Menu bar missing HOT 1
- Ability to search for Emoji 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 android-messages-desktop.