Launch Offer! Get lifetime access for just $59 for a limited time.

UScraper
Back to block reference

Setup & Actions

Inject JavaScript block

Runs custom JavaScript in the page context.

Purpose

Use Inject JavaScript for advanced cleanup, DOM preparation, custom calculations, or interactions that are difficult to express with standard blocks.

How it works

  • Executes configured JavaScript inside the current browser page.
  • Can wait for completion before continuing.
  • Can return command results for inspection.

Configuration fields

FieldRequiredDefaultDescription
JavaScript CodeYes-Code to run in the browser context.
Wait for completionNotrueWhether UScraper should wait for the script to finish.
TimeoutNo10Maximum seconds for script execution.

Usage notes

  • Keep injected scripts small and deterministic.
  • Use standard blocks first; JavaScript is best for edge cases.
  • The script runs with page access, so avoid pasting untrusted code.
FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ · macOS coming soon