Removes images that are offscreen once per minute
目前為
// ==UserScript==
// @name Chatango Remove offscreen Images
// @namespace Chatango Remove offscreen Images
// @description Removes images that are offscreen once per minute
// @include *//st.chatango.com/*
// @version 1.04
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
// @require https://greasyfork.org/scripts/7702-jquery-viewport-checker/code/jQuery-viewport-checker.js?version=33495
// ==/UserScript==
/*real script begins here*/
this.$ = this.jQuery = jQuery.noConflict(true);
removeinvis();
setInterval(removeinvis,60000);
function removeinvis(){
$('.thumb, .thumb-popup, .video-thumb').each(
function(index, el){
$(el).viewportChecker({
repeat:true,callbackFunction: function(elem, action){
if(action=="remove")
$(elem).remove();
}
});
}
);
}