From 8bb7af1af4f242763c36552568ee278b191d1c2c Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 24 Aug 2023 21:43:03 -0700 Subject: RFP --- home/xyz/.local/bin/rfp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home/xyz/.local/bin/rfp (limited to 'home/xyz/.local/bin/rfp') diff --git a/home/xyz/.local/bin/rfp b/home/xyz/.local/bin/rfp new file mode 100755 index 00000000..5ae004b4 --- /dev/null +++ b/home/xyz/.local/bin/rfp @@ -0,0 +1,11 @@ +#!/bin/sh + +if grep -q '^//user_pref("privacy.resistFingerprinting", false);$' "$HOME/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js"; then + sed -i 's#^//\(user_pref("privacy.resistFingerprinting", false);\)$#\1#' "$HOME/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js" + notify-send -u critical 'RFP disabled' +else + sed -i 's#^\(user_pref("privacy.resistFingerprinting", false);\)$#//\1#' "$HOME/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js" + notify-send 'RFP enabled' +fi +upd -j +"$BROWSER" -- cgit v1.2.3-70-g09d2