scripts

Type:
<string> | <string[]>
Injects into the browser page.
microlink-api https://microlink.io&screenshot&scripts.0=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2F%40microlink%2Fmql%400.3.12%2Fsrc%2Fbrowser.js&scripts.1=document.body.style.backgroundColor%20%3D%20%27red%27
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/[email protected]/src/browser.js').
Prefer to use modules whenever possible.

scripts

Type:
<string> | <string[]>
Injects into the browser page.
microlink-api https://microlink.io&screenshot&scripts.0=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2F%40microlink%2Fmql%400.3.12%2Fsrc%2Fbrowser.js&scripts.1=document.body.style.backgroundColor%20%3D%20%27red%27
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/[email protected]/src/browser.js').
Prefer to use modules whenever possible.