Advertisement
Guest User

Untitled

a guest
Apr 20th, 2022
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         images tool insta
  3. // @namespace    ale
  4. // @version      1
  5. // @description   -
  6. // @author       -
  7. // @require      http://code.jquery.com/jquery-3.6.0.min.js
  8. // @include https://www.google.com/search?tbm=isch&q=*#imgrc=*
  9. // @match https://*instagram.com/*
  10. // @grant GM_setClipboard
  11. // @grant GM_download
  12. // @inject-into content
  13. // @run-at document-idle
  14. // ==/UserScript==
  15. $('body').on('click','img', displayContextMenu);
  16.  function displayContextMenu(e) {
  17.         e.preventDefault();
  18.         currentTarget = e.target;
  19.        
  20.  
  21.      var srcd = $(currentTarget).prop("src");
  22.       GM_setClipboard(srcd);
  23.       //GM_download({url: srcd,
  24.                   //name:"356.jpg",
  25.                  //saveAs: true, });
  26.     }
  27.    
  28. cntxtMn.click(function(e) {
  29.         e.stopPropagation();
  30.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement