36

I was wondering how hard it would be to enable a 'hiding' option that let me hide certain questions that I don't want to see. That way if it was a very active question that I have no interest in, I could simply click hide and not see it anymore.

The only foreseeable reason why this couldn't be implemented completely with a Greasemonkey script is that it would be nice to get replacement posts. As of right now, even the hide tag feature simply hides the questions after they were loaded. If I hid a lot of tags, I would end up getting very few questions on the home page.

This is, of course, due to caching.

7
  • Do you mean a specific question, rather than tag based. If tag based you can already hide them through a setting in your preferences. Jul 21, 2009 at 0:38
  • 3
    I mean specific questions. Like if I didn't want to see this question, I could hide it. Jul 21, 2009 at 0:54
  • 1
    Perhaps with a reason you're hiding it: "Don't know the answer", "Unclear question", "Don't care". The first one could get special treatment - auto-unhide when answered, for example.
    – Nickolay
    Oct 26, 2009 at 11:58
  • I would like to see something similar to Googles "Hide" function as part of their "SearchWiki" (or whatever they call it). i.e. There is a quesiton, with a button, I click it, and it disappears from view. There is a then a (collapsed) section at the bottom of the page, where I can "show" hidden questions. Nice and clean. Feb 6, 2010 at 6:53
  • I also think this is important because some questions may be "interesting" but its a nice way of getting the ones out of the way that I have reviewed (e.g. "can't help"). Feb 6, 2010 at 6:54
  • Yes it would be nice and sort of like in facebook (hide this post). Also, the ability to unhide should also not be forgotten
    – Irfan
    Jun 10, 2011 at 3:08
  • This would be a very good feature to have and I like the suggestion from @mitchus in this post: meta.stackexchange.com/questions/192060/… "One variation could be 'I'm bored with this question, please hide it until someone comes up with an answer of at least 3 upvotes'."
    – MoonSire
    Aug 30, 2013 at 7:29

6 Answers 6

8

I have written a simple GreaseMonkey script which will do this for you. Just replace the ids with the ids you wish to hide, and it will remove these questions from the questions page. This is my first GM script, so if you find bugs in it, please let me know. I will try to make it a bit more user friendly, but this does work (on my comp anyway).

// ==UserScript==
// @name           Hide questions
// @namespace      http://stackoverflow.com/
// @include        http://meta.stackoverflow.com/questions
// ==/UserScript==
//

//************************************
//* Replace the numbers in brackets  *
//* with the ids of the questions    *
//* That you wish to hide            *
//************************************
var hiddenQs = new Array( 7609, 7598 );

var questionDivs = "//div[@class='question-summary']";    
//define a search function for arrays
Array.prototype.findIndex = function(value){
var ctr = "";
for (var i=0; i < this.length; i++) {
if (this[i] == value) {
return i;
}
}
return -1;
};

function getQuestions () {
    return document.evaluate( questionDivs, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}

var questions = getQuestions( );
var curQuestion, qID;


for (var i=0; i < questions.snapshotLength; i++) {
    curQuestion = questions.snapshotItem( i );
    qID = curQuestion.id.split('-')[2];
    if (hiddenQs.findIndex( qID ) != -1) {
        curQuestion.parentNode.removeChild( curQuestion );
    }
}
3
  • Three Words: Nice (exclamation point) Jul 21, 2009 at 1:45
  • If this script still works, someone should upload it to userscripts.org, and then link to it in a reply to this comment. That way it will get wider exposure, and a nicer hosting environment. Nov 7, 2010 at 7:47
  • @Robin: To be honest, I don't even remember writing this script, and have no idea if it still works. However, if you find it useful, by all means upload it to userscripts.org, as long as you still give me credit for it. If you find that something about it no longer works, let me know and I will try to fix it for you.
    – a_m0d
    Nov 8, 2010 at 12:56
5

It just hit me when I first noticed that I was constantly browsing through the same question over and over on the main page. My mind had dismissed them, but the UI did not let me.

Of course I can browse further elsewhere, but I feel I should be able to hide questions with a button right on the main page if I'm not interested (anymore), and possibly end up with a higher percentage of interesting questions on my main page.

Also, I wish there was a search for "open, unread, not hidden, not ignored tags questions", to show me those slightly older questions I haven't tackled yet. I mean there are 23000 questions, and I constantly see the same 25-30 over and over because people are commenting and answering on these.

2

I'd love to have this feature!

Let me highlight that this feature is close related to the "star" feature. They can even be used for data mining to decide how to initiate new stackoverflow branches by topics favoured and hidden by clusters of people.

My alternative formulation (closed as a duplicate) was:


I like the "star" function because it enables me to revisit questions I hope to read new answers for.

I would like to have a complementary functionality, maybe "black glasses" (as for blinding): I would like to mark some unanswered questions as ones I do not want to revisit. I regularly read through unanswered questions to see if I can answer any. There are questions that I can't answer and also I'm not interested in the answer, but staying unanswered for longer periods of time.

I would find it helpful if in listings it would be immediately visible which questions I marked with black glasses so as to save the time of re-reading and re-realising that they are questions I don't want to see any more.

1

I just thought of posting the same idea. I have started working through the list of question on StackOverflow with no answers, and some of them I would never be able to answer, however keeping track of which you've seen and which you haven't is becoming tricky, especially across multiple machines.

Something similiar has been implemented for the moderator dashboard, where items we have already read are dimmed, although for the question list, completely hiding it will definitly make life easier when going through the unanswered list.

This could be linked to the current option for hiding ignored tags.

1

Yet another greasemonkey script with an UI to select questions to hide manually. Selected questions are stored locally :(

0

This would be a nice to have. And would also require a way to un-hide a question. Good suggestion though.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .