old_contents: (function(e){var t=function(e){var t=this;if(e&&typeof e==="string"){t=$.find(e,t)}return t};e.fn.aboveViewport=function(e){var n=$(window).scrollTop(),r=t.call(this,e);r=$.grep(r,function(e){e=$(e);return n>e.offset().top+e.height()});return this.pushStack(r)};e.fn.belowViewport=function(e){var n=$(window).scrollTop()+$(window).height(),r=t.call(this,e);r=$.grep(r,function(e){return n<$(e).offset().top});return this.pushStack(r)};e.fn.outsideViewport=function(e){var n=$(window).scrollTop(),r=n+$(window).height(),i=t.call(this,e);i=$.grep(i,function(e){var e=$(e);return r<e.offset().top||n>e.offset().top+e.height()});return this.pushStack(i)};e.fn.insideViewport=function(e){var n=$(window).scrollTop(),r=n+$(window).height(),i=t.call(this,e);i=$.grep(i,function(e){var t=$(e).offset().top,i=t+$(e).height();return n<t&&r>t||r<i&&n>i});return this.pushStack(i)}})(jQuery)
new_contents: (function(e){var t=function(e){var t=this;if(e&&typeof e==="string"){t=$.filter(e,t)}return t};e.fn.aboveViewport=function(e){var n=$(window).scrollTop(),r=t.call(this,e);r=$.grep(r,function(e){e=$(e);return n>e.offset().top+e.height()});return this.pushStack(r)};e.fn.belowViewport=function(e){var n=$(window).scrollTop()+$(window).height(),r=t.call(this,e);r=$.grep(r,function(e){return n<$(e).offset().top});return this.pushStack(r)};e.fn.outsideViewport=function(e){var n=$(window).scrollTop(),r=n+$(window).height(),i=t.call(this,e);i=$.grep(i,function(e){var e=$(e);return r<e.offset().top||n>e.offset().top+e.height()});return this.pushStack(i)};e.fn.insideViewport=function(e){var n=$(window).scrollTop(),r=n+$(window).height(),i=t.call(this,e);i=$.grep(i,function(e){var t=$(e).offset().top,i=t+$(e).height();return n<t&&r>t||r<i&&n>i});return this.pushStack(i)}})(jQuery)
  
subject: update min with bug fix