Will create firefox profile

Jonathan Hodgson 4 years ago
parent c21d54d9a4
commit 34ea59f0f6
  1. 8
      bin/.bin/webtest/clickjacking

@ -6,9 +6,7 @@ Usage: clickjacking url [outfile]
The script will use a headless version of firefox to screenshot a page containing the provided url in an iframe
You will need to create a profile called headless for firefox before this will work.
Open firefox and go to about:profiles to create one
This script will create a firefox profile called headless to create the screenshot with
EOF
exit 0
fi
@ -26,7 +24,7 @@ die(){
# This will need to be a profile that isn't currently open
# I suggest making one for headless use
# go to about:profiles in firefox to create one
profile="headless"
profile="test"
# Url of site to put in iframe
url="$1"
@ -36,6 +34,8 @@ url="$1"
# Name of image to make
output="${2:-screenshot.png}"
$firefox -CreateProfile "$profile" -no-remote 2>&1 >/dev/null
source="
<!DOCTYPE html>
<html>

Loading…
Cancel
Save