From Small Marmoset, 2 Weeks ago, written in Plain Text.
  1. #!/bin/bash
  2.  
  3. rm -rf ~/.mozilla/firefox/*
  4.  
  5. cat <<EOF>~/.mozilla/firefox/profiles.ini
  6. [Install$(mktemp -u XXXXXXXXXXXXXXXX)]
  7. Default=blank.default
  8. Locked=1
  9.  
  10. [Profile0]
  11. Name=default
  12. IsRelative=1
  13. Path=blank.default
  14. Default=1
  15.  
  16. [General]
  17. StartWithLastProfile=1
  18. Version=2
  19. EOF
  20.  
  21. (/usr/lib/firefox/firefox-bin &)&
  22. sleep 2s
  23. ps ux|awk '$11=="/usr/lib/firefox/firefox"{print $2}' \
  24.   | while read -r; do
  25.       kill -9 "$REPLY"
  26.     done
  27.  
  28. #sed -i 's/http:\/\/.*[^"]/"/g' ~/.mozilla/firefox/blank.default/prefs.js
  29. curl -sL https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js >~/.mozilla/firefox/blank.default/prefs.js
  30. rm -rf ~/.mozilla/firefox/blank.default/{datareporting,crashes,minidumps,permissions.sqlite}
  31. printf -- $'\0' | tee ~/.mozilla/firefox/blank.default/{datareporting,crashes,minidumps,permissions.sqlite}
  32. # SHUT. THE. FUCK. UP. DONNY.
  33. rm -rf ~/.mozilla/firefox/blank.default/{datareporting,crashes,minidumps,permissions.sqlite}
  34. touch ~/.mozilla/firefox/blank.default/x
  35. for bullshit in datareporting crashes minidumps permissions.sqlite; do
  36.   ln -sf ~/.mozilla/firefox/blank.default/x ~/.mozilla/firefox/blank.default/"$bullshit" 2<-
  37. done
  38. rm -f ~/.mozilla/firefox/blank.default/x
  39. (notify-send "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"&)&
  40.  
  41. /bin/firefox "$@"
  42.  
  43. exit
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. rm -rf ~/.mozilla/firefox/"$profile"
  61.  
  62. if [[ -d ~/.mozilla/firefox/"$profile".bak ]];then
  63.   cp ~/.mozilla/firefox/"$profile".bak ~/.mozilla/firefox/"$profile"
  64. fi
  65. exit
captcha