nordinatueurgmail.com / Hornet Enhancer

// ==UserScript==
// @name        Hornet Enhancer
// @namespace   hornet-enhancer
// @description Enhance Hornet experience
// @copyright   2016, Pacosys
// @author      nordinatueurgmail.com
// @include     https://hornetapp.com/*
// @version     1
// @grant       none
// ==/UserScript==
function makeLink(){
  var p=document.querySelector("div#portrait");
  if(!p)return false;
  var a = p.querySelector("a.backgroundLink");
  if(!a){
    a = document.createElement("a");
    a.classList.add("backgroundLink");
    p.appendChild(a);
    a.style.fontSize ="1.5em";
    a.target = "_blank";
    a.innerHTML="Download";
  }
  a.href = "http:"+p.style.backgroundImage.split('"')[1];
}
function makeLinks(){
  window.setTimeout(makeLink,500);
}

document.body.ondblclick = function(){
  var p=document.querySelector("div#portrait");
  if(!p)return false; 
  makeLink(p);
  var prev = p.querySelector("i.previous");
  var next = p.querySelector("i.next");
  var gallery = document.querySelector("div#gallery-inner");
  prev.onclick = makeLinks;
  next.onclick = makeLinks;
  gallery.onclick = makeLinks;
}
console.log("--------------------------------------------");
console.log("Hornet profile picture link finder launched.");
console.log("--------------------------------------------");