163图集完整显示

看网易图集的时候一张一张的翻很麻烦,本脚本可以让所有图片全部展示出来。

目前为 2015-05-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         163图集完整显示
// @namespace    https://gf.qytechs.cn/zh-CN/users/10666-sbdx
// @version      0.2
// @description  看网易图集的时候一张一张的翻很麻烦,本脚本可以让所有图片全部展示出来。
// @author       塞北的雪
// @match        http://*.163.com/photoview/*
// @grant        none
// @require  	 http://libs.useso.com/js/jquery/1.9.1/jquery.min.js
// ==/UserScript==


function ShowAllImage()
{
    pics=$.parseJSON($("textarea[name='gallery-data']").text());
    str='';
    $(pics.list).each(function(i){
        str+='<img src="'+pics.list[i].oimg+'"><br><br>';
    });
    $('.photoarea').children().remove();
    $('.photoarea').html(str);
}

$(function(){
    $("body").append("<div id='tools_sbdx' style='position:absolute;right:10px;top:100px;'><button>显示全部图片</button></div>");
    $("#tools_sbdx button").on("click",ShowAllImage);
	$(window).scroll(function(){$("#tools_sbdx").offset({top:$(document).scrollTop()+100});});
});

QingJ © 2025

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