From 5e22dd968fe725c975c5044f4008317c314b51b3 Mon Sep 17 00:00:00 2001 From: 2Abendsegler <2Abendsegler@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:31:17 +0200 Subject: [PATCH] [Log Form] Additional cache info in log form are missing. close #2633 --- gc_little_helper_II.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gc_little_helper_II.user.js b/gc_little_helper_II.user.js index f50d5b4c..f5597984 100644 --- a/gc_little_helper_II.user.js +++ b/gc_little_helper_II.user.js @@ -5176,16 +5176,16 @@ var mainGC = function() { // The fields difficulty, terrain, favoritePoints and premiumFavoriteScore are available in page data ("__NEXT_DATA__", props.pageProps.loggable), // but the fields have no values. In addition, the watchers are not included there. Therefore, we cannot replace the website reading with this data. function outputAddCacheInfo(aci, waitCount) { - if ($('.loggable-header')[0] && $('.loggable-header .gc-geocache-icon')[0] && $('.loggable-header .geocache-link')[0]) { + if ($('.loggable-header')[0] && $('.loggable-header span:first')[0] && $('.loggable-header .geocache-link')[0]) { if ($('.gclh_aci_working')[0] && !$('.gclh_aci')[0]) { $('.loggable-header').append('' + aci + ''); $('.loggable-header').removeClass('gclh_aci_working'); // Set variable length of cache name. $('.loggable-header .geocache-link')[0].title = $('.loggable-header .geocache-link')[0].innerText; function setMaxwidthOfCacheName(waitCount) { - if (!$('.loggable-header')[0] || !$('.loggable-header .gc-geocache-icon')[0] || !$('.gclh_aci')[0]) return; + if (!$('.loggable-header')[0] || !$('.loggable-header span:first')[0] || !$('.gclh_aci')[0]) return; var newMaxWidth = parseInt(window.getComputedStyle($('.loggable-header')[0]).width) - 38 - - parseInt(window.getComputedStyle($('.loggable-header .gc-geocache-icon')[0]).width) + - parseInt(window.getComputedStyle($('.loggable-header span:first')[0]).width) - ($('.loggable-header .badge')[0] ? parseInt(window.getComputedStyle($('.loggable-header .badge')[0]).width) : 0) - parseInt(window.getComputedStyle($('.gclh_aci')[0]).width); var oldMaxWidth = (parseInt(window.getComputedStyle($('.loggable-header .geocache-link')[0]).maxWidth) ? parseInt(window.getComputedStyle($('.loggable-header .geocache-link')[0]).maxWidth) : 0); @@ -5255,7 +5255,7 @@ var mainGC = function() { }); } function waitForAddCacheInfo(waitCount) { - if ($('.loggable-header')[0] && $('.loggable-header .gc-geocache-icon')[0] && $('.loggable-header .geocache-link')[0] && !$('.gclh_aci_working')[0] && !$('.gclh_aci')[0]) { + if ($('.loggable-header')[0] && $('.loggable-header span:first')[0] && $('.loggable-header .geocache-link')[0] && !$('.gclh_aci_working')[0] && !$('.gclh_aci')[0]) { $('.loggable-header').addClass('gclh_aci_working'); getAddCacheInfo(); }