---
type: flow
format: 1
id: reddit-upvote
name: Upvote a Reddit link
description: Paste Reddit posts or comments. Open each, then upvote.
start: "{{link}}"
each: link
inputs:
  - id: link
    type: list
    label: Reddit links
    placeholder: "https://www.reddit.com/r/…"
    itemType: url
steps:
  - type: open
    label: Open the post
    url: "{{link}}"
    rewrite: reddit-thread
  - type: browse
    label: Look around
    script: human
    ms: 30000
    ready: shreddit-post
    selector: "shreddit-comment[thingid=\"t1_{commentId}\"]"
  - type: click
    label: Upvote
    script: reddit-upvote
    selector: "button[upvote]"
    text: upvote
---

