FoxyTunesをエコーライン(?)に移動する

FoxyTunes がステータスバーを占領しすぎるので、したに追いやることにした。
背景が黒いと、ボタンが異常にみにくいのでその点でも良い。
コマンド化するから別にいい気もするけど。

autocommands.add(
  'VimperatorEnter',
  /.*/,
  function () {
    setTimeout(function () {
      let clock = document.getElementById('liberator-plugin-clock-box');
      let panel = document.getElementById('foxytunes-statusbar-panel');
      let hbox = document.createElement('hbox');
      let msg = document.getElementById('liberator-message');
      hbox.appendChild(panel);
      msg.parentNode.appendChild(hbox);
      let justify = function () {
        let left = innerWidth - panel.boxObject.width - clock.boxObject.width;
        hbox.setAttribute('left', left);
      };
      msg.addEventListener('resize', justify, false);
      hbox.addEventListener('resize', justify, false);
      window.addEventListener('resize', justify, false);
      justify();
    }, 1000);
  }
);

こんな感じになった。
極めて適当な感じで、clock.js 分ずらしてある。
http://www.kurinton.net/~snca/blogfiles/foxytunes-moving.jpg