Discourse Changes & Enhancements

No problem. First, and most importantly, always use someone else’s thing: https://github.com/vincepare/iframeTracker-jquery

I’ll post the rest of my code if you want it, but after detecting the click it’s going to be a lot different between what I did:

  1. set a jquery scroll handler that just eats the event and doesn’t let it bubble to other handlers
  2. set a window.timeout timer for 2 seconds in javascript to run a function to remove that scroll handler

…and what you should do, which is all in Ember.

I imagine you are most interested in the link at the top here, but if you want I’ll post the code too. :)

I went ahead and committed these changes to my user script, here’s the link for you to see that code if you want (there’s a lot of other stuff in there since it has the theming bits and the ignoring users bits too): https://github.com/matthewboonstra/qt3UserScript/blob/master/QuarterToThreeDiscourseForumHelper.user.js

Also, I generally apologize for all of that code. I haven’t had enough time to make it anything other than cobbled together and gross.