# EFF's Cover Your Tracks with privacy mode off, then on (S024). Needs internet; direct connection only (VPN off,
# smoke.sh drops proxy variables). Saves the fingerprint verdict and table as cyt-off.json / cyt-on.json and shots.
#   SMOKE_TIMEOUT=600 tools/smoke.sh tests/smoke/coveryourtracks.txt
wait 3
set /vpn/enabled false
set /privacy/mode false
wait 1
open https://coveryourtracks.eff.org/
waitload 60
wait 3
shot cyt-start
js [...document.querySelectorAll("a,button,input")].find(e => /test your browser/i.test(e.innerText || e.value || "")).click(); 1
waitfor 240 location.pathname.includes("results") && (document.getElementById("fingerprintTable") || { innerText: "" }).innerText.length > 100
wait 5
save cyt-off JSON.stringify({ url: location.href, status: document.getElementById("fp_status").innerText, table: document.getElementById("fingerprintTable").innerText })
shot cyt-off
set /privacy/mode true
wait 1
open https://coveryourtracks.eff.org/
waitload 60
wait 3
js [...document.querySelectorAll("a,button,input")].find(e => /test your browser/i.test(e.innerText || e.value || "")).click(); 1
waitfor 240 location.pathname.includes("results") && (document.getElementById("fingerprintTable") || { innerText: "" }).innerText.length > 100
wait 5
save cyt-on JSON.stringify({ url: location.href, status: document.getElementById("fp_status").innerText, table: document.getElementById("fingerprintTable").innerText })
shot cyt-on
status done
quit
