Skip to content

Instantly share code, notes, and snippets.

@wpgaurav
Last active April 8, 2020 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpgaurav/a1f5a2afeb242b81970bd1fda8b77f09 to your computer and use it in GitHub Desktop.
Save wpgaurav/a1f5a2afeb242b81970bd1fda8b77f09 to your computer and use it in GitHub Desktop.
Source code of One click screenshot of any webpage: https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<title>One click screenshot of any webpage</title>
<meta name="description" content="Get a one to two click screenshot of any webpage in .png. Download and use it on blogs and websites." />
<meta name="robots" content="follow, index, , max-snippet:-1, max-video-preview:-1, max-image-preview:large" />
</head>
<body>
<form id="your_form" onsubmit="yourFunction()" target="_blank">
<input type="url" name="url">
<input type="submit" value="Submit">
</form>
<script type="text/javascript">function yourFunction(){
var action_src = "https://s0.wordpress.com/mshots/v1/" + document.getElementsByName("url")[0].value;
var your_form = document.getElementById('your_form');
your_form.action = action_src ;
}
</script>
<hr>
Source: <a href="https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/">https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment