hs.Expander.prototype.onBeforeExpand = function() {
  if (/slow/.test(this.a.className)) {
    hs.expandDuration = 500;
    hs.expandSteps = 20;
  }
};
hs.Expander.prototype.onAfterExpand = function() {
  if (/slow/.test(this.a.className)) {
    hs.expandDuration = 250;
    hs.expandSteps = 10;
  }
};
hs.Expander.prototype.onBeforeClose = function() {
  if (/slow/.test(this.a.className)) {
    hs.restoreDuration = 500;
    hs.restoreSteps = 20;
  }
};
hs.Expander.prototype.onAfterClose = function() {
  if (/slow/.test(this.a.className)) {
    hs.restoreDuration = 250;
    hs.restoreSteps = 10;
  }
};