#!/bin/sh
# Temporarily disable cleanbrowsing
echo "Why do you want to browse unsafe?"
while test ${#intention} -lt 10
do read intention
done
jrnl intentions-nug "$intention"
trap 'echo Cancelling unsafe browsing && browse-safe; exit $?' INT
test -f "/etc/resolv.conf" &&
  sudo chattr -i /etc/resolv.conf &&
  sudo mv /etc/resolv.conf /etc/resolv.conf.bak
sudo systemctl enable --now systemd-resolved
sleep ${1:-100}
echo "Ending unsafe browsing"
browse-safe
