scripts

Type:
<string> | <string[]>
It injects into the browser page over the target url.
  • CLI
  • JavaScript
  • Shell
  • Python
  • Ruby
microlink 'https://microlink.io&screenshot=true&scripts.0=%5B%5D.forEach.call(document.querySelectorAll(%22*%22)%2Cfunction(a)%7Ba.style.outline%3D%221px%20solid%20%23%22%2B(~~(Math.random()*(1%3C%3C24))).toString(16)%7D)'
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').
Prefer to use modules whenever possible.