Lightshot/Prnt.sc view only image

view only image in prnt.sc

// ==UserScript==
// @name        Lightshot/Prnt.sc view only image
// @namespace   https://greasyfork.org/users/821661-hdyzen
// @match       https://prnt.sc/*
// @grant       none
// @version     1.0
// @author      hdyzen
// @description view only image in prnt.sc
// ==/UserScript==

const urlToOpen = document.querySelector('[name="twitter:image:src"][content]')?.content

urlToOpen ? window.open(urlToOpen, '_self') : null