Chatango Remove offscreen Images

Removes images that are offscreen once per minute

Pada tanggal 07 Februari 2015. Lihat %(latest_version_link).

Penulis
Aaron Shikaku
Nilai
0 0 0
Versi
1.14
Dibuat
25 Januari 2015
Diperbarui
07 Februari 2015
Size
1,35 KB
Lisensi
N/A
Berlaku untuk

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