I've been noticing an issue recently I (and other users) have tried to access deleted answers, only to get the question and no error message.

This behaviour is annoying, would it be possible to have some sort of error message when we try to access a deleted answer (and are <10k)?

Something like this:

enter image description here

The current issue is that if some user posts a link to the answer and the answer's deleted, other users may think (and indeed, this has happened to me) that the question is being referred to, and not the answer.

Example from today:

enter image description here

Although SmokeDetector did explicitly mention answer, the action of Madara Uchiha did confuse a couple of users, including myself. This would've been prevented if an error message showing the answer had been removed had been shown when attempting to visit it.

I know it's a tiny feature request, but I think it'd be a nice feature to have.

  • @ᔕᖺᘎᕊ Noted, provided an answer to this feature request. Might try and stir up some activity on the dupe.
    – AStopher
    Commented May 31, 2015 at 11:39
  • yep - you could answer it showing what happened in chat to provide more reason. BTW - can you accept the dupe to avoid another 2 people having to? Commented May 31, 2015 at 11:40
  • @ᔕᖺᘎᕊ Already tried, it won't show me the options I normally have (doesn't show the close option, which I normally have [only on my own questions, since I obviously don't have the rep]).
    – AStopher
    Commented May 31, 2015 at 11:41
  • There's no big blue button saying 'This solved my question' at the top?? Commented May 31, 2015 at 11:42
  • @ᔕᖺᘎᕊ Nope: puu.sh/i72UJ/5abd5ff664.png
    – AStopher
    Commented May 31, 2015 at 11:43
  • 1
    hmm.. weird! oh well - other users will mark it as a dupe for you :) Commented May 31, 2015 at 11:43

1 Answer 1


I changed Rene's code from the duplicate slightly, to be more in-line with SE's style.

Still, would be nice to have this implemented as a default stock feature of the SE engine:

enter image description here

// ==UserScript==
// @name         Check whether a comment or answer exists.
// @namespace    https://meta.stackexchange.com/users/158100/rene
// @version      0.2
// @description  Show a message if the answer or comment in the hash if the URL does not exist.
// @author       rene, made into SE's style by cybermonkey
// @match        *://*.stackexchange.com/questions/*
// @match        *://stackoverflow.com/questions/*
// @match        *://serverfault.com/questions/*
// @grant        none
// ==/UserScript==

(function ($, window) {

var hash = $(window.location).attr('hash'),
    msg = $('<div></div>')
                .css('padding', '10px')
                .css('text-align', 'center')
                .css('color', 'white')

function showMessage(jqsel, text) {
    if (jqsel.length === 0) {
            .text('The ' + text + ' you are trying to access has been deleted.')

if (hash.length > 0) {
    cleanHash = hash.substring(1);
    if (cleanHash.indexOf('comment') === 0) {
        ids = cleanHash.substring(7).split('_');
        showMessage($('div#comments-' + ids[1]).find('tr#comment-'+ ids[0]), 'comment');
    } else {
        if (Number.parseInt(cleanHash, 10) !== NaN) {
            showMessage($('div#answer-' + cleanHash), 'answer');
}($ || unsafeWindow.$, window || unsafeWindow ));
  • ..and the reason for the downvote is...
    – AStopher
    Commented May 31, 2015 at 12:01
  • I guess people prefer to have answers posted in one place, and not scattered around. (i.e. this answer better be posted on the original question) Commented May 31, 2015 at 14:51
  • @ShadowWizard I posted an answer with the alternative code which (in my opinion) better suits the SE design, and that in the original question that rene probably wouldn't appreciate it if I posted the code there.
    – AStopher
    Commented May 31, 2015 at 14:53
  • MSE, like Stack Overflow, is not a personal help forum - OP does not have to like the given answer. Anyway, I did not downvote this, just sharing my ideas why it got downvoted and personally I justify this. Commented May 31, 2015 at 14:57
  • @ShadowWizard I know, I've been around for a while.
    – AStopher
    Commented May 31, 2015 at 15:01

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