Last active
August 25, 2016 10:12
-
-
Save dreikanter/3dd5d24c281dc378f08c228c88a43e8f to your computer and use it in GitHub Desktop.
A Tampermonkey user script for Chrome, that displays direct screenshot URL on Monosnap pages to make it easier to copy.
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
// ==UserScript== | |
// @name Monosnap Direct URL Expose | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Display direct screenshot URL on Monosnap pages to make it easier to copy. | |
// @author Alex Musayev | |
// @include https://monosnap.com/file/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$(".url-container").remove(); | |
var url = $("meta[property='og:image']").attr('content'); | |
$("<tr class='url-container'><td style='font-size: 120%; padding: 20px; text-align: center;'><a style='color: white;' href='" + url + "'>" + url + "</td></tr>").insertAfter("body>table:first tr:first"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment