/deplacement-rapid

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Deplacement Rapid

During confinement in France, everyone is required to fill out an "attestation de déplacement dérogatoire" in order to leave their house.

This repository contains Javascript file you can use to create an iOS shortcut to automate the process of filling in the web form to generate a attestation.

For iOS:

Create a new shortcut in the shortcut app.

  1. add an action

  2. select web

  3. select Run JavaScript on Web Page the Safari section

  4. replace the code with what's in the deplacement-rapid.js file

  5. replace the variable values with your personal data

  6. set the action to execute on shortcut input (instead of Web Page)

  7. in the shortcut options (the ... button)

    1. enable Show in Share Sheet,
    2. then in Share Sheet Types, deselect everything but Safari Web Pages

Use the shortcut:

  1. Go to the form (https://media.interieur.gouv.fr/deplacement-covid-19/) in Safari
  2. Click on the share icon
  3. Select the shortcut