Created
December 5, 2013 19:57
-
-
Save Rast1234/7812794 to your computer and use it in GitHub Desktop.
Hide all VK posts in a chat except yours; to find something you posted before
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
| //load jQuery because Vk has no $'s :) | |
| var jq = document.createElement('script'); | |
| jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| // ... give time for script to load, then type. | |
| jQuery.noConflict(); | |
| //drop other's posts | |
| x = jQuery('.im_in'); for(i=0; i<x.length; i++){x[i].innerHTML=""} | |
| //also drop posts with docs (GIFS particularly) | |
| x = jQuery('.im_doc_photo'); for(i=0; i<x.length; i++){x[i].innerHTML=""} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment