Skip to content

Instantly share code, notes, and snippets.

@opi
Created March 29, 2012 08:12
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opi/2234861 to your computer and use it in GitHub Desktop.
Save opi/2234861 to your computer and use it in GitHub Desktop.
Disqus Javascript Callback
// In a js file
disqus_config = function() {
this.callbacks.afterRender.push(function() { /* your code */ });
this.callbacks.onNewComment.push(function() { /* your code */ });
/* Available callbacks are afterRender, onInit, onNewComment, onPaginate, onReady, preData, preInit, preReset */
}
@french50
Copy link

Don't work with disqus 2012 :/

Copy link

ghost commented Mar 14, 2016

you can use those (updated).

preData
preInit
onInit
afterRender
onReady
onNewComment
preReset
onPaginate
onIdentify
beforeComment

taken from recent source-code (embed.js)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment