prntscr direct link

link direct to image link

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @run-at document-start
// @name         prntscr direct link
// @version      0.1
// @description  link direct to image link
// @author       Ewart Boonstra
// @match        http://prnt.sc/*
// @require http://code.jquery.com/jquery-latest.js
// @namespace https://greasyfork.org/users/97631
// ==/UserScript==

(function() {
    'use strict';
     //var url = $('.image-framed').attr("src");
    var metaUrl = $('head').find('meta[name="twitter:image:src"]')[0];
    var url = $(metaUrl).attr('content');
    console.log(url);
    window.location.href = url;
})();