Show Discourse version on the /about page

This may not help the average (whatever that is) user, but here’s a simple JavaScript that will get the Discourse version:

verStr = document.querySelector('meta[name="generator"]').content.match(/\w+[ ]+[\d\.]+/)[0];
verStr

You could run this script from several tools:

  • AppleScript
  • JavaScript for Automation (JXA)
  • Keyboard Maestro
  • Browser bookmarklet
  • others?

I’ve tested it only in Chrome, so I can’t vouch for other browsers, but it should work in Safari.

3 Likes