Search with google image fix

Search with google image again cause fuck google lens

Verzia zo dňa 30.03.2022. Pozri najnovšiu verziu.

// ==UserScript==
// @name         Search with google image fix
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Search with google image again cause fuck google lens
// @author       You
// @require      http://code.jquery.com/jquery-3.4.1.min.js
// @match        http://*/*
// @match        https://*/*
// @grant        none
// ==/UserScript==

(function() {
    $(document).click(function(event) {
        if ($(event.target).prop("tagName").toUpperCase() == "IMG"){
            if (window.event.altKey){
                var src = "https://www.google.com/searchbyimage?q=Coffee&image_url=" + $(event.target).attr("src");
                window.open(src);
            }
        }
    });
})();