modules
Type: 
<string> | <string[]>
Injects 
<script type="module">
 into the browser page over the target url.- CLI
- JavaScript
- Shell
- Python
- Ruby
const mql = require('@microlink/mql')
const { status, data } = await mql('https://microlink.io', { screenshot: true, modules: ['https://cdn.jsdelivr.net/npm/@microlink/mql@0.3.12/src/browser.js','document.body.style.backgroundColor = 'red''] })
mql.render(data)The code to be injected can be defined as:
- Inline code (e.g., "document.body.style.backgroundColor = 'red'").
- Absolute URLs (e.g., 'https://cdn.jsdelivr.net/npm/@microlink/mql@0.3.12/src/browser.js').