Web Connector 25.2
Web Connector Help

# Custom Script Parameters

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

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

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Web Connector 25.2

Topic Title: Custom Script Parameters