Open topic with navigation

# Custom Script Parameters

The parameters in this section can be used to run custom JavaScript on a page, before the page is ingested.

CustomJSAllSelected

CustomJSElementSelector

CustomJSScriptPath

CustomJSSections

CustomJSUrlRegex

EnableJavascriptConsoleLogging

You can set these parameters in the TaskName section. For example:

    [MyTask]
    Url=http://www.hpe.com
    ...
    CustomJSUrlRegex=http://www\.hpe\.com/folder/.*
    CustomJSScriptPath=javascript/my_script_0.js

Alternatively, use the parameter CustomJSSections to list the names of configuration sections that contain settings for running custom JavaScript. For example:

    [MyTask]
    Url=http://www.hpe.com
    ...
    CustomJSSections=CustomJS0,CustomJS1

    [CustomJS0]
    CustomJSUrlRegex=http://www\.hpe\.com/folder/.*
    CustomJSScriptPath=javascript/my_script_0.js

    [CustomJS1]
    CustomJSUrlRegex=.*
    CustomJSScriptPath=javascript/my_script_1.js

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm