08/12/29 18:00:50 Y+b0vWtz0
>>437 greased LightBox に
// init()
// Function runs on window load, going through link tags looking for links to images.
// These links receive onclick events that enable the lightbox display for their targets.
// The function also inserts html markup at the top of the page which will be used as a
// container for the overlay pattern and the inline image.
init : function() {
// ++++++++++++++++ googleImagesAutoPager.user.js 用の変更 Start +++++++++++++
function setAutoPagerEvent(){
var scrollHeight = document.documentElement.scrollHeight;
document.addEventListener("scroll",
function(e){
if(document.documentElement.scrollHeight - scrollHeight > 100){
scrollHeight = document.documentElement.scrollHeight;
try{greasedLightbox.unload();}catch(ex){}
greasedLightbox.init1();
}
},false);
}
setAutoPagerEvent();
greasedLightbox.init1();
},
init1 : function() {
// ++++++++++++++++ googleImagesAutoPager.user.js 用の変更 End +++++++++++++
// initialize localization
greasedLanguage.init();
の Start から End までを追加する。
でいけるけど、クリックで元に戻れなくなる・・・