#!/bin/sh # Version: 1.0.3 # Author: Danny Lin # License: MIT # for f in "$@"; do u=$(printf "%s" "$f" | sed "s|%|%25|g" | sed "s|?|%3F|g" | sed "s|#|%23|g") unzip -Z -1 "$f" '*/' | while read s; do [ -z ${s#*/} ] && firefox "jar:file://${u}!/${s}index.html" done done