Created
May 8, 2015 22:28
-
-
Save uoxiu/f922d8f4a6808c1e3f2d to your computer and use it in GitHub Desktop.
999.md remove dublicates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var seen = {}; | |
| $('.ads-list-photo-item img').each(function() { | |
| var txt = $(this).attr('src'); | |
| if (seen[txt]) | |
| $(this).closest('.ads-list-photo-item').remove(); | |
| else | |
| seen[txt] = true; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment