modules
Type:
<string> | <string[]>
Injects
<script type="module">
into the browser page over the target url.- CLI
- JavaScript
- Shell
- Python
- Ruby
microlink 'https://microlink.io&screenshot=true&modules.0=https://cdn.jsdelivr.net/npm/@microlink/mql@0.3.12/src/browser.js&modules.1=document.body.style.backgroundColor = 'red''
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'
).