Archive for the 'stackoverflow' Category

24
Oct
10

StackOverflow bookmarklets


Sometimes I like to see only the questions that are interesting for me. For this I made the following bookmarklets:

  1. Show only interesting questions:

    
    var elements = document.getElementsByTagName("div");
    for(var i = 0;i < elements.length;i++) {
      	var one = elements[i];
    	if(one.className != "question-summary narrow tagged-interesting" && one.id.match("^question-summary"))   {
    		one.style.display = "none";
      	}
    };
    void(0);
    
  2. Hide uninteresting questions

    
    var elements = document.getElementsByTagName("div");
    for(var i = 0;i < elements.length;i++){
      var one = elements[i];
      if(one.className == "question-summary narrow tagged-ignored")   {
         one.style.display = "none";
      }
    };
    void(0);
    

To make them work, add a new bookmark to your browser, and in the address bar, add:javascript: and the code of one of the bookmarklets.
HTH.




Blog Stats

  • 223,712 hits