Improve autoscroll_livelinks_active behaviour

Instead of detaching & reattaching the event listeners, we can just
set a boolean value & check for it in the clearUnreadPosts function.
This makes sure that the unread post count in title isn't cleared when
the autoscroll function is called.