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.

Advertisements

0 Responses to “StackOverflow bookmarklets”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 225,320 hits

%d bloggers like this: