Skip to main content

Control Smartling's Context Capture with Custom JavaScript

You can integrate Smartling's Context Capture Extension with custom JavaScript. This should be applied before taking a snapshot of the page. Integrating custom JavaScript is especially useful, for example, to show or hide certain elements on a page or to manipulate markup so that it will match strings in files.

  1. In Chrome, right-click the Chrome Extension icon and select Options
    ​

    Screenshot_2022-01-20_at_20.04.09.png
  2. Check Execute JavaScript prior to snapshot and enter the code you wish to execute.
    ​

    options.png
  3. Changes are automatically saved

Alternatively, you can customize Visual Context for your entire Smartling Project by inserting CSS and/or JavaScript in your Smartling Project settings.

Did this answer your question?