scripts/reddit: improve url matching