#!/bin/bash
for A; do
	B=$A/index.html
	if [ -e "$B" ]; then
		A=$B
	fi
	chrome "$A"
done
xdotool windowactivate $WINDOWID
