Ininate Scroll Ebay

enter something useful

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Ininate Scroll Ebay
// @namespace    http://your.homepage/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        http://www.ebay.co.uk/sch/*
// @grant        none
// @locale       en
// ==/UserScript==



$.getScript('https://cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.0b2.120519/jquery.infinitescroll.min.js', function() {

    $.getScript('https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js', function() {
        $('#GalleryViewInner').infinitescroll({
            dataType: 'html',
            navSelector  : "#PaginationAndExpansionsContainer",            
            // selector for the paged navigation (it will be hidden)
            nextSelector : ".next",    
            // selector for the NEXT link (to page 2)
            itemSelector : "#GalleryViewInner"          
            // selector for all items you'll retrieve
        },function(arrayOfNewElems){
            $('.null').each(function(item, thing){
                var myself = $(this),
                    image = myself.find('img'),
                    imageTag = image.attr('imgurl');

                myself.removeClass('null');
                image.attr('src',imageTag);
            });
            // optional callback when new content is successfully loaded in.

            // keyword `this` will refer to the new DOM content that was just added.
            // as of 1.5, `this` matches the element you called the plugin on (e.g. #content)
            //                   all the new elements that were found are passed in as an array

        });          
    });
});