From 4f284269f4a23ab718057314051ff23af2155302 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 11 Jan 2022 17:49:08 +0100 Subject: [PATCH] My notes --- UserJS_README.md | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 UserJS_README.md diff --git a/UserJS_README.md b/UserJS_README.md new file mode 100644 index 0000000..f317f9d --- /dev/null +++ b/UserJS_README.md @@ -0,0 +1,71 @@ +# GIT ArkenFox + +## MàJ repository + +``` +$ git fetch +$ git checkout 95.0 +``` + +**Vérifications des modifications locales** + +$ git diff + +**Lien symbolique depuis le répertoire Mozilla** + +``` +$ cd ~/.mozilla/firefox/ +$ ln -sf ~/dev_3rd/FF_arkenfox_user.js/user.js . +``` + +## Nettoyage + +Important de nettoyer car certaines lignes peuvent avoir été retirées. + +``` +$ cd ~/.mozilla/firefox/abcdef12.profile +$ ~/dev_3rd/FF_arkenfox_user.js/prefsCleaner.sh +$ cd .. +``` + + +## Création + +``` +$ ~/dev_3rd/FF_arkenfox_user.js/updater.sh -lc +``` + + +# Search + +``` +$ SUFFIX=$(kdialog --inputbox "Suffix" $(date +%Y-%m-%d)) \ + && TMP=$(mktemp) \ + && mozlz4a.py --decompress search.json.mozlz4 $TMP \ + && jq . --indent 2 $TMP > search_${SUFFIX}.json \ + && rm $TMP +``` + + +# Archive + +## Télécharger Arkenfox + +Méthode alternative — au lieu d'utiliser GIT. + +``` +$ cd ~/.mozilla/firefox/ + +$ wget https://github.com/arkenfox/user.js/archive/refs/tags/86.0.tar.gz +$ mv 86.0.tar.gz user.js-86.0.tar.gz +$ tar xf user.js-86.0.tar.gz + +$ DIR=$(echo user.js*(/om[1])) && ln -sf $DIR/user.js . +``` + +**Vérifications** + +``` +$ DIR=$(echo user.js*(/om[1])) && kdiff3 ~/dev_3rd/FF_arkenfox_user.js/updater.sh $DIR/updater.sh updater_local.sh +``` +