wgnrj / wallhaven - image opener

// ==UserScript==
// @name        wallhaven - image opener
// @namespace   http://wgnrj.de
// @description Open the images directly instead of showing the info page with the image.
// @author      Jochen Wagner <jjogi23@gmail.com> (https://openuserjs.org/users/wgnrj)
// @author      Jochen Wagner <jjogi23@gmail.com> (https://github.com/wgnrj)
// @copyright   2016+, Jochen Wagner (https://openuserjs.org/users/wgnrj)
// @license     MIT License; https://opensource.org/licenses/MIT
// @include     https://alpha.wallhaven.cc/wallpaper/*
// @version     1
// @grant       none
// ==/UserScript==

var imageSource = document.getElementById("wallpaper").src;
window.location = imageSource;