Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inject custom markup in the website while creating a screenshot with CLI (command line) using https://github.com/sindresorhus/capture-website-cli
window.onload = function() {
var x = document.querySelectorAll("h1");
x[1].innerHTML = "Mahesh Waghmare";
var x = document.querySelectorAll(".subheading");
x[1].innerHTML = "This Screenshot is generated with `capture-website-cli`. And also the string \"Mahesh Waghmare\" and this paragraph both are also injected with the JavaScript while creating https://wordpress.org/ web page screenshot.";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment