sogou公众号搜索结果导出图片

将sogou公众号搜索结果导出成图片

  1. // ==UserScript==
  2. // @name sogou公众号搜索结果导出图片
  3. // @namespace https://gf.qytechs.cn/zh-CN/users/443879-fanzhixin
  4. // @version 0.1
  5. // @description 将sogou公众号搜索结果导出成图片
  6. // @author Bill Fan 范志鑫
  7. // @match https://weixin.sogou.com/weixin*
  8. // @include https://weixin.sogou.com/weixin*
  9. // @run-at document-end
  10. // @grant GM_xmlhttpRequest
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.  
  15. // Your code here...
  16.  
  17.  
  18. //var inputdata= window.prompt("保存地址:");
  19. //window.alert(inputdata);
  20. var hd=document.getElementsByTagName("h3");
  21. for(i=0;i<hd.length;i++)
  22. {
  23.  
  24. //window.alert(hd[i].innerText);
  25. var al=hd[i].getElementsByTagName("a");
  26. var link=al[0].href;
  27. savetoimg(link);
  28. }
  29.  
  30. function savetoimg(link){
  31. window.open(link);
  32. //ndoc.print();
  33. return;
  34. }
  35.  
  36. })();

QingJ © 2025

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