// ==UserScript== // @name 163图集完整显示 // @namespace https://greasyfork.org/zh-CN/users/10666-sbdx // @version 2017.07.19 // @description 看网易图集的时候一张一张的翻很麻烦,本脚本可以让所有图片全部展示出来。 // @author 塞北的雪 // @match *.163.com/photoview/* // @grant none // @require https://code.jquery.com/jquery-1.9.1.min.js // @downloadURL https://update.greasyfork.icu/scripts/9339/163%E5%9B%BE%E9%9B%86%E5%AE%8C%E6%95%B4%E6%98%BE%E7%A4%BA.user.js // @updateURL https://update.greasyfork.icu/scripts/9339/163%E5%9B%BE%E9%9B%86%E5%AE%8C%E6%95%B4%E6%98%BE%E7%A4%BA.meta.js // ==/UserScript== function ShowAllImage() { pics=$.parseJSON($("textarea[name='gallery-data']").text()); str=''; $(pics.list).each(function(i){ str+='

'; }); $('.photoarea').children().remove(); $('.photoarea').html(str); $('.photoarea').css('z-index',10000000);//设置为最上层 } $(function(){ $("body").append("
"); $("#tools_sbdx button").on("click",ShowAllImage); $(window).scroll(function(){$("#tools_sbdx").offset({top:$(document).scrollTop()+100});}); });