您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
点击下方的“复制”链接后,就可粘贴到贴吧或者迅雷批量下载
当前为
// ==UserScript== // @name 微博图片原图地址批量复制 // @description 点击下方的“复制”链接后,就可粘贴到贴吧或者迅雷批量下载 // @include http://www.weibo.com/* // @version 0.1 // @author yechenyin // @namespace https://greasyfork.org/users/3586-yechenyin // @require https://code.jquery.com/jquery-1.11.2.min.js // @grant GM_setClipboard // ==/UserScript== $(function() { if (!location.href.indexOf("http://www.weibo.com/")) { for (var i=0; i<$('.WB_row_line').length; i++) { $('.WB_row_line').eq(i).html('<li class="copy_images"><a class="S_txt2"><span class="S_line1 line">复制</span></a></li>'+$('.WB_row_line').eq(i).html()); } $('.WB_row_line li').css({width:"20%"}); $('.copy_images').click(function () { urls = ''; var images = $(this).parent().parent().parent().parent().find('.WB_media_a img'); //images; for (var i=0; i<images.length; i++) { urls += images[i].src + '\n'; } urls = urls.replace(/\/square\//g, '/large/'); console.log(urls); GM_setClipboard(urls); }); } });