您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
将sogou公众号搜索结果导出成图片
// ==UserScript== // @name sogou公众号搜索结果导出图片 // @namespace https://greasyfork.org/zh-CN/users/443879-fanzhixin // @version 0.1 // @description 将sogou公众号搜索结果导出成图片 // @author Bill Fan 范志鑫 // @match https://weixin.sogou.com/weixin* // @include https://weixin.sogou.com/weixin* // @run-at document-end // @grant GM_xmlhttpRequest // ==/UserScript== (function() { // Your code here... //var inputdata= window.prompt("保存地址:"); //window.alert(inputdata); var hd=document.getElementsByTagName("h3"); for(i=0;i<hd.length;i++) { //window.alert(hd[i].innerText); var al=hd[i].getElementsByTagName("a"); var link=al[0].href; savetoimg(link); } function savetoimg(link){ window.open(link); //ndoc.print(); return; } })();