Skip to content

Commit

Permalink
How to export config with 1.24 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
tprouvot committed Nov 20, 2024
1 parent 1e9d0c5 commit 4c385ae
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,23 @@ Under `User Experience` tab, enable the option `Highlight PROD with a top border

## Import / Export configuration (saved query etc.)

### With 1.25 and above
To export and import your current configuration, go to the options page and click the corresponding icon in the header:

<img width="889" alt="Import / Export Configuration" src="https://github.com/user-attachments/assets/00428039-9b83-4c14-9a27-5e5034c52753">
<img width="889" alt="Import / Export Configuration" src="https://github.com/user-attachments/assets/00428039-9b83-4c14-9a27-5e5034c52753">

### Export Configuration with 1.24 and below
From any page of the extension (Options, Data Export etc.), right click on the page and select `Inspect`.
Then, from the browser console, paste the following code and press enter.
``` js
const localStorageData = { ...localStorage };
const jsonData = JSON.stringify(localStorageData, null, 2);
const blob = new Blob([jsonData], { type: "application/json" });
const link = document.createElement("a");
const url = URL.createObjectURL(blob);
link.href = url;
link.download = "reloadedConfiguration.json";
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
```

0 comments on commit 4c385ae

Please sign in to comment.