You can do it with a browser add-on or GreaseMonkey script. Unfortunately Disqus comments are in JSON format. There might be a way to get them in HTML format, but I don't know how.

To get the JSON comments, you must find the URL from where to fetch them. For example, if you want the comments of: https://www.wired.com/2015/05/binge-watching-making-planet-warmer/

You should get the comments from: https://disqus.com/embed/comments/?base=default&version=597d5139026c6bd7c7cd9b05b398e28e&f=wired&t_i=1781044%20http%3A%2F%2Fwww.wired.com%2F%3Fp%3D1781044

Here's how to find the comments URL:



    Go to the page where the comments should be.


In the page source search for 'var disqus_identifier' and 'var disqus_shortname', which are JavaScript variables, and copy their values.


    The disqus_identifier value should be escaped, which means if
    looks like this:

1781044 http://www.wired.com/?p=1781044

    It should become like this:

1780245%20http%3A%2F%2Fwww.wired.com%2F%3Fp%3D1780245

You can use the encodeURIComponent() function, if you are using JavaScript.


    Using the two variables, make a URL in the following format:

'https://disqus.com/embed/comments/?base=default&version=597d5139026c6bd7c7cd9b05b398e28e&f=' + disqus_shortname + '&t_i=' + disqus_identifier




When you go to the URL you've made it will appear blank in a web browser. But if you look at the page source you'll be able to see the comments, formatted in JSON.



When you have the JSON data, using an add-on or GreaseMonkey, you can generated HTML comments and put them on the page. It shouldn't be very hard, if you really want to see the comments.

As, if you are interested of doing a add-on/script which does this. Maybe I can too do a video tutorial on how to write something like this. :)

Reply via email to