Skip to content

Instantly share code, notes, and snippets.

@dreikanter
Last active August 25, 2016 10:12
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 dreikanter/3dd5d24c281dc378f08c228c88a43e8f to your computer and use it in GitHub Desktop.
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.
// ==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