Last active
          April 11, 2023 22:01 
        
      - 
      
 - 
        
Save M4GNV5/bf544c9c18e9c38d5f4ed7f687aa756b to your computer and use it in GitHub Desktop.  
    Bypass luca-app sms verify allowing users to test the app without a real phone number. Use responsibly
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Paste this into the js console of your browser whilst viewing the Luca webapp | |
| (function() { | |
| var originalFetch = fetch; | |
| window.fetch = (url, options) => { | |
| if(url === '/api//v3/sms/request') { | |
| console.log('hooked fetch', url, options); | |
| return Promise.resolve({ | |
| json: () => Promise.resolve({ | |
| challengeId: '00000000-0000-0000-0000-000000000000', | |
| }) | |
| }); | |
| } | |
| else if(url === '/api//v3/sms/verify') { | |
| console.log('hooked fetch', url, options); | |
| return Promise.resolve({ | |
| status: 204, | |
| }); | |
| } | |
| else { | |
| return originalFetch(url, options); | |
| } | |
| }; | |
| })(); | 
I assume you have to make some modifications to make this work with greasemonkey. I've never used greasemonkey nor written scripts for it, but i assume you would have to make some declarations on what websites this should apply to etc.
yeah I know, the problem I'm having is that such addons aren't available for the current mobile Firefox.
How do YOU use the script?
I use it on my computer actually. Just for testing and researching with Luca. I wasn't forced to use Luca yet (staying home helps) and in the case someone actually enforces Luca there still is schmudo2go
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
how do you use this on mobile? there's no console on mobile and although there seems to be something like this:
https://addons.mozilla.org/de/android/addon/greasemonkey/
my Android Firefox (88.1.2) says that it's not compatible. I can download the xpi too but cannot open it with Firefox.