Last active
April 8, 2020 14:35
Source code of One click screenshot of any webpage: https://gauravtiwari.org/snippet/one-click-screenshot-of-any-webpage/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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