message: Improve video quality
diff: value: 0
  },
  ];
  - (async () =>
  + async function applyQuality()
  {
  - const qualityItems = await SpinQuery.condition(
  + const qualityItems = await SpinQuery.any(
  () => $(".bilibili-player-video-quality-menu .bui-select-list>li.bui-select-item"),
  - it => it.length > 0 && $("li.profile-info").length > 0
  );
  const [availableHighestQualities] = qualityItems.toArray()
  .map(it => parseInt(it.getAttribute("data-value")))
  .filter(it => it <= Math.min(targetQuality, availableHighestQualities))
  .sort(it => it);
  - const video = document.querySelector("video");
  + const video = await SpinQuery.condition(() => document.querySelector("video"), it => it);
  function onplay()
  {
  qualityItems.each((_, it) =>
  this.removeEventListener("play", onplay);
  }
  video.addEventListener("play", onplay);
  - })();
  + }
  + Observer.subtree("#bofqi", () => applyQuality());
  };
  })();
  \ No newline at end of file
  