Chatango Remove offscreen Images

Removes images that are offscreen once per minute

2015/02/07のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Aaron Shikaku
評価
0 0 0
バージョン
1.14
作成日
2015/01/25
更新日
2015/02/07
大きさ
1.35KB
ライセンス
不明
対象サイト

Click here to lend your support to: Support my code! and make a donation at pledgie.com !

This script removes() using jQuery any images not visible in HTML5 Chatango. Without it you will run out of memory eventually if people post enough images, especially GIFs.

Let me know if you need any help.

Libs included:

jQuery 1.11.2 from jQuery.com

https://github.com/dirkgroenen/jQuery-viewport-checker

Updates:
v1.14: does not scroll up when removing posts ヽ༼ຈل͜ຈ༽ノ thanks for the advice YotaXP!
v1.13: made it clear old posts a little faster, and only every 5 minutes instead of every minute.
v1.12: changed post limit to 100, fixed it running too often, whoops.
v1.11: staggered timeouts on old posts removed so it doesn't kill your cpu and cause a disconnect, hope it works. Thanks YotaXP!
v1.10: removed erroneous scrollbar when hovering images.
v1.09: increased max size slightly
v1.08: Added css to prevent gigantic posts
v1.07: Commented out remove old posts code since it causes random disconnects. Investigating later.
v1.06: Makes it only store 50 messages on Chatango. Previous functions I think I'll keep just to make remove images from memory faster.
v1.05: Removes offscreen smileys as well as message background images
v1.04: Now using @require and not including, also fixed it breaking UI and Youtube ヽ༼ຈل͜ຈ༽ノ
v1.03: added Youtube portion back in since it breaks it anyway, this time investigating later
v1.02: Removed the Youtube portion due to it breaking Youtube playback, investigating later
v1.01: added youtube video thumbnails to remove too
v1: initial release