Created
December 6, 2025 09:23
-
-
Save tyjak/b0f0f613a0e9752f75654d7dd569841e to your computer and use it in GitHub Desktop.
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
| #!/bin/zsh | |
| # Retrieve a link from history firefox with the title | |
| # GistID: b0f0f613a0e9752f75654d7dd569841e | |
| history_dir=${FIREFOX_PROFILE_DIR:-~/.mozilla/firefox/lpaxa2pv.travail-1729068729785} | |
| title=$1 | |
| database=file:${history_dir}/places.sqlite?immutable=1 | |
| sqlite3 $database <<EOF | |
| SELECT url FROM moz_places WHERE title LIKE '%${title}' | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment