issues
search
yakisova41
/
return-youtube-comment-username
This is to change the handle in the YouTube comments section to a username
https://rycu.yakisova.com/
MIT License
50
stars
2
forks
source link
Performance up and bug fix
#71
Closed
yakisova41
closed
10 months ago
yakisova41
commented
10 months ago
setIntervalを10msから400msにすることで、コメントのレンダリングと名前の書き換え処理を同時並列で実行することを(ある程度)防ぎパフォーマンスを向上させます。
commentRenderer以下の要素(bodyやmain)を取得する際に、filterやqueryselectorを使用するとパフォーマンスが低下するため0.3.11以前に使用されていたchildrenのindexで要素を指定する方法に戻しました。なおyoutubeの仕様変更によりbody, mainのindexが変わって見つからない場合は、queryselectorを使用し応急的に要素を取得します。
&のエスケープをデコードしていなかった問題を修正 #70
foreachをforに変更