Bing Image Direct Link Patch

Make CTRL+Click on image thumbnail go directly to the image in a Bing Image search result. Use CTRL+SHIFT+Click to open image in a new tab.

Od 01.09.2017.. Pogledajte najnovija verzija.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Bing Image Direct Link Patch
// @namespace   BingImageDirectLinkPatch
// @description Make CTRL+Click on image thumbnail go directly to the image in a Bing Image search result. Use CTRL+SHIFT+Click to open image in a new tab.
// @author      jcunews
// @include     https://www.bing.com/images/search*
// @version     1.0.1
// @grant       none
// ==/UserScript==

//add direct image URL to the image bottom panel
document.addEventListener("click", function(ev) {
  var base, ele = ev.target, url, link, z;
  if (!ev.button && ev.ctrlKey && ele.classList.contains("mimg")) try {
    base = ele.parentNode.parentNode.parentNode.parentNode;
    url = JSON.parse(base.querySelector(".iusc").getAttribute("m")).murl;
    if (ev.shiftKey) {
      open(url, "bidlp" + (new Date()).valueOf());
    } else {
      location.href = url;
    }
    ev.preventDefault();
    ev.stopPropagation();
    ev.stopImmediatePropagation();
  } catch (z) {}
}, true);