The following script for Tampermonkey (multi browser) or Greasemonkey (Firefox) automatically expands all comments which are normally hidden behind the "show ... more comments" link:

pic of "show more comments" link

The code is based on the fantastic answer from Brock Adams - Thank you!

// ==UserScript==
// @name        StackExchange, Expand All Comments
// @author      Taken from https://webapps.stackexchange.com/a/119439/192282
// @description Automatically shows all comments for questions and answers
// @match       *://*.askubuntu.com/*
// @match       *://*.mathoverflow.net/*
// @match       *://*.serverfault.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://blog.stackexchange.com/*
// @exclude     *://blog.stackoverflow.com/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://elections.stackexchange.com/*
// @exclude     *://openid.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://*/review
// @grant       none
// @version     1.1
// @history     1.1 Avoid clicking on disabled "add a comment" links.
// @history     1.0 Initial release.
// ==/UserScript==
try {
    //--- This is a utility function that SE currently provides on its pages.
    StackExchange.ready (function () {
        $('.js-show-link').not (".dno").trigger ('click');
    } );
}
catch (e) {
    console.error (
      "***Userscript error: StackExchange.ready() is no longer defined!"
    , e);
}



Known issues:

  • May not expand comments if cookies are disabled (side effect of SE's anonymous user handling).
  • 2
    Just a few days ago, I decided to write a script to do this, today I find you've prepared one for me. Thank you. It works perfectly. +1 – 3D1T0R Aug 6 at 22:33
  • 1
    @3D1T0R You'll have to thank @ BrockAdams -- it's all his magic doing! – samcarter Aug 7 at 14:44
  • @BrockAdams & @​samcarter: Thanks. Sorry I didn't get back to you sooner, but it really is working perfect for me now. I do have to wonder though about the coding style. I find it very weird to have spaces between function-name and parenthesis. Is there a particular reason for this? – 3D1T0R Aug 20 at 21:58
  • Also: You can use // @exclude *://blog.* & // @exclude *://chat.*. – 3D1T0R Aug 24 at 21:21

You must log in to answer this question.

Browse other questions tagged .