perf: fix full table scan in video-origin, cache settings, stop non-YT watch refetch loop, and guard bots (v1.7.16)

This commit is contained in:
Enes Yakıştır
2026-11-17 23:15:56 +03:00
parent 18f8a601e8
commit b5e8ea28ce
3 changed files with 133 additions and 58 deletions
+6 -4
View File
@@ -7071,10 +7071,12 @@ try {
var uuid = match[1];
var existingPanel = document.getElementById('yaktube-watch-comments-panel');
if (uuid === lastWatchUuid && existingPanel) {
var nativeComments = document.querySelector('my-video-comments, .video-comments, .comments-block, #comments');
if (nativeComments && existingPanel.previousElementSibling !== nativeComments) {
nativeComments.insertAdjacentElement('afterend', existingPanel);
if (uuid === lastWatchUuid) {
if (existingPanel) {
var nativeComments = document.querySelector('my-video-comments, .video-comments, .comments-block, #comments');
if (nativeComments && existingPanel.previousElementSibling !== nativeComments) {
nativeComments.insertAdjacentElement('afterend', existingPanel);
}
}
return;
}