Search with google image fix

Search with google image again cause fuck google lens

当前为 2022-03-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Search with google image fix
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Search with google image again cause fuck google lens
  6. // @author You
  7. // @require http://code.jquery.com/jquery-3.4.1.min.js
  8. // @match http://*/*
  9. // @match https://*/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. $(document).click(function(event) {
  15. if ($(event.target).prop("tagName").toUpperCase() == "IMG"){
  16. if (window.event.altKey){
  17. var src = "https://www.google.com/searchbyimage?image_url=" + $(event.target).attr("src");
  18. window.open(src);
  19. }
  20. }
  21. });
  22. })();