NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Instagram Image Link Opener
// @namespace pootz
// @description Allow You Open Instagram Image On Another Tab Left Clicking it
// @include https://www.instagram.com/*
// @include http://www.instagram.com/*
// @include https://instagram.com/*
// @include http://instagram.com/*
// @version 1.1
// @history v1.1 Update IG source code
// @license MIT
// @require https://code.jquery.com/jquery-2.2.3.min.js
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// @updateURL https://openuserjs.org/meta/pootz/Instagram_Image_Link_Opener.meta.js
// @downloadURL https://openuserjs.org/install/pootz/Instagram_Image_Link_Opener.user.js
// @grant GM_openInTab
// ==/UserScript==
waitForKeyElements("div.KL4Bh img", clickableImage, false);
function clickableImage (jNode) {
jNode.each ( function () {
var jThis = $(this);
var imgLink = jThis.prop ("src");
jThis.parent().parent().find("._9AhH0").on( "click", function() {
GM_openInTab(imgLink);
});
} );
}