google_plus_image_address_finder

try to find out the download url of a google plus image

  1. // ==UserScript==
  2. // @name google_plus_image_address_finder
  3. // @namespace NULL
  4. // @version 0.1
  5. // @description try to find out the download url of a google plus image
  6. // @author Simon Shi
  7. // @match https://plus.google.com/photos/photo/*
  8. // @grant unsafeWindow
  9. // @run-at context-menu
  10. // ==/UserScript==
  11.  
  12.  
  13. function get_image()
  14. {
  15. var image_list = [];
  16.  
  17. image_list = unsafeWindow.document.getElementsByClassName("XkWAb-LmsqOc XkWAb-Iak2Lc");
  18. if(image_list.length === 0){
  19. console.log("[LS]no image found!!!");
  20. return 0;
  21. }
  22. var image_src = image_list[image_list.length-1].src;
  23. console.log("[LS]image src = "+image_src);
  24. var temp_a=document.createElement('a');
  25. document.body.appendChild(temp_a);
  26. temp_a.href=image_src.split("=")[0] + "=s0-d-ip";
  27. temp_a.click();
  28. document.removeChild(temp_a);
  29. }
  30.  
  31.  
  32. (function() {
  33. 'use strict';
  34.  
  35. console.log("[LS]Google Plus Image address finder :start");
  36. get_image();
  37. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址