Skip to content

Instantly share code, notes, and snippets.

@Rast1234
Created December 5, 2013 19:57
Show Gist options
  • Select an option

  • Save Rast1234/7812794 to your computer and use it in GitHub Desktop.

Select an option

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
//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