Skip to content

Instantly share code, notes, and snippets.

@BoQsc
Last active July 17, 2019 18:03
Show Gist options
  • Save BoQsc/6303d9c1c6bee2ed76c878db9a7a2d45 to your computer and use it in GitHub Desktop.
Save BoQsc/6303d9c1c6bee2ed76c878db9a7a2d45 to your computer and use it in GitHub Desktop.
Kill Firefox, start Firefox In Headless mode, wait for WebExtensions to load, Kill Firefox once more. This is my method of forcing Firefox to load newly placed extensions from the firefox extensions folder.
killall "firefox";
firefox --headless &
while true;
do sleep 1;
if pgrep -x "WebExtensions";
then
echo "Running";
killall "firefox";
break;
else
echo "Stopped";
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment