# Custom JavaScript on Rendered Pages: Actions and Extractions

> Run your own JavaScript on every page Neova renders: actions such as scrolling or opening sections, extractions that become columns, safely, with a library to start from.

Source: https://neova.app/help/custom-javascript

Your own JavaScript, run on every page Neova renders. An Action changes the page before Neova reads it, such as scrolling to the bottom; an Extraction returns a value that becomes a column. A point-and-click picker writes CSS selectors and XPath for you.

1.  
2.  
3.  

Custom Search & Extraction › Test on One URL

[](/help/shots/app/nt-custom-javascript-test-light.webp?v=1796030828)

**Test on One URL.** Each snippet’s value and time on one page, rendered now.

Custom Search & Extraction › Results

[](/help/shots/app/nt-custom-javascript-results-light.webp?v=1796030828)

**Results.** Each snippet’s value as a column of All URLs.

Custom Search & Extraction › Pick on a Page

[](/help/shots/app/nt-custom-javascript-picker-light.webp?v=1796030828)

**Pick on a Page.** Click an element: Neova writes its CSS selector and XPath, with how many match.

Real screens of Neova 26.11.25, on a test site.

##  Open It

Open a property, then **Tools**, **Crawl and Structure**, **Custom Search & Extraction**, and the **JavaScript** mode. Snippets run when the crawl renders pages.

##  Action or Extraction?

Pick a kind of snippet:

**Changes the page first.** Actions run in order, the page settles again, and the HTML Neova keeps is read after them.

**Returns a value.** Run after the actions; a list is joined with \|, an object kept as JSON, 4,000 characters at most.

**Refused.** Any request other than GET and HEAD is refused while snippets run, and the page stays where it is.

##  The Library

**Scroll to the Bottom** Loads what appears as you scroll.

**Open Collapsed Sections** Opens accordions and details.

**Google Tag IDs** The tags each page loads.

**dataLayer Events** What the page pushes to the data layer.

**Visible Word Count** Words a visitor can see.

**Consent Banner** Whether one shows, and what it says.

##  Safe by Design

While your snippets run, the page cannot post forms or navigate away: every request other than GET and HEAD is refused, new windows open nothing, and trackers stay blocked. Each snippet has its own timeout (10 seconds unless you set it, 60 at most); past it, Chrome stops the script and the page goes on. The code runs in the page, never in Neova.

##  Raw or Rendered, and the Picker

Custom Search & Extraction now reads the **Raw HTML** or the **Rendered HTML**, and searches the Whole HTML, the Visible Text, the Head or the Body. **Pick on a Page…** shows one stored page where nothing runs and nothing is fetched from your site: click an element, and Neova writes **Elements Like It**, **This Element** and its XPath.

##  Which Plans

**Every plan** Desktop Free included. A crawl on Desktop Free stops at 1,000 pages.

Up to 20 snippets a property. [See the plans →](https://neova.app/pricing)

[← Back to Help](/help) [Crawl Behind a Login →](/help/crawl-behind-a-login)
