Skip to content

Commit

Permalink
Prepare 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
2Abendsegler authored Dec 1, 2023
2 parents c800976 + 232611a commit 6e90c6f
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 18 deletions.
68 changes: 68 additions & 0 deletions docu/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<a href="//"><img src="https://img.shields.io/badge/dynamic/xml?url=http://c.andyhoppe.com/1676270686?output=text&label=installations&color=success&query=/" title="installations and updates"></a>
<a href="//"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/2Abendsegler/GClh/master/docu/changelog.md&count_bg=%2349c91b&title_bg=%23555555&icon=&title=hits&edge_flat=false" title="hits day / total"></a><br>
<br>
<a href="#v0151" title="GClh II version 0.15.1 (02.12.2023)">v0.15.1</a> &nbsp;
<a href="#v015" title="GClh II version 0.15 (26.11.2023)">v0.15</a> &nbsp;
<a href="#v0146" title="GClh II version 0.14.6 (22.04.2023)">v0.14.6</a> &nbsp;
<a href="#v0145" title="GClh II version 0.14.5 (12.04.2023)">v0.14.5</a> &nbsp;
Expand Down Expand Up @@ -39,6 +40,73 @@
<a href="changelog_before.md" title="Go to earlier changelog">Earlier changelog</a> &nbsp;
<span id="readme"></span>

---
## v0.15.1:
&nbsp; &nbsp; <img src="../images/flag_ua.png" alt="" title="Stand with Ukraine"><br>
<ul>
<li>
<strong>New:</strong> [Log View] Hide share button. [<a href="https://github.com/2Abendsegler/GClh/issues/2483" title="Issue 2483">2483</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
<strong>New:</strong> [Log View] VIP, VUP, mail, message icons for logged user. [<a href="https://github.com/2Abendsegler/GClh/issues/2497" title="Issue 2497">2497</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
<strong>New:</strong> [Log View] Build copy to clipboard icon for logtext. [<a href="https://github.com/2Abendsegler/GClh/issues/2489" title="Issue 2489">2489</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
<img src="../images/0.15.1/Screen01.jpg" alt="Screen01.jpg"><br>
<ul>
<li>
Hide share button.<br>
<a href="https://www.geocaching.com/my/#GClhShowConfig#a#settings_hide_socialshare" title="Link to your GClh II Config">Settings -> Global - Hiding:<br>
<img src="../images/0.15.1/Screen03.jpg" alt="Screen03.jpg"></a><br>
This parameter is not new. If you want to use this feature, maybe you have to activate it.<br>
</li>
<li>
VIP, VUP, mail, message icons for logged user.<br>
<a href="https://www.geocaching.com/my/#GClhShowConfig#a#settings_show_vip_list" title="Link to your GClh II Config">Settings -> Global - User Related Layout:<br>
<img src="../images/0.15.1/Screen05.jpg" alt="Screen05.jpg"></a><br>
These parameter are not new. If you want to use these features, maybe you have to activate them.<br>
</li>
<li>
Copy logtext to clipboard.<br><br>
</li>
</ul>
</li>
<li>
<strong>New:</strong> [Cache Owner Dashboard] Hide survey like it is done for the green feedback icon. [<a href="https://github.com/2Abendsegler/GClh/issues/2482" title="Issue 2482">2482</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
<img src="../images/0.15.1/Screen02.jpg" alt="Screen02.jpg"><br>
<a href="https://www.geocaching.com/my/#GClhShowConfig#a#settings_hide_feedback_icon" title="Link to your GClh II Config">Settings -> Global - Hiding:<br>
<img src="../images/0.15.1/Screen04.jpg" alt="Screen04.jpg"></a><br>
This parameter is not new. If you want to use this feature, maybe you have to activate it.<br><br>
</li>
<li>
<strong>Change:</strong> [New Dashboard, Log Form] The edit links for the logs in the dashboard should be changed to the new log form. [<a href="https://github.com/2Abendsegler/GClh/issues/2473" title="Issue 2473">2473</a> / <a href="https://www.geocaching.com/profile/?u=capoaira" title="Thanks to capoaira">capoaira</a>]<br><br>
</li>
<li>
<strong>Fix:</strong> [Log Form] Submitting an image name in a new log leads to a blank page. [<a href="https://github.com/2Abendsegler/GClh/issues/2500" title="Issue 2500">2500</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Log Form] Signature is insert into edit form. [<a href="https://github.com/2Abendsegler/GClh/issues/2475" title="Issue 2475">2475</a> / <a href="https://www.geocaching.com/profile/?u=capoaira" title="Thanks to capoaira">capoaira</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Log Edit] VIP, VUP, message, mail icons not available on edit log page if calling from edit button on view log page. [<a href="https://github.com/2Abendsegler/GClh/issues/2492" title="Issue 2492">2492</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Log Form] On the edit log page, GClh is not running, but the GClh header is available on the page. [<a href="https://github.com/2Abendsegler/GClh/issues/2472" title="Issue 2472">2472</a> / <a href="https://www.geocaching.com/profile/?u=capoaira" title="Thanks to capoaira">capoaira</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Log Form] Determine user data for id '__NEXT_DATA__' run into error. [<a href="https://github.com/2Abendsegler/GClh/issues/2494" title="Issue 2494">2494</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Log Form] Uncaught TypeError: Window.getComputedStyle: Argument 1 is not an object. [<a href="https://github.com/2Abendsegler/GClh/issues/2474" title="Issue 2474">2474</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
<li>
<strong>Fix:</strong> [New Dashboard] No edit links to own TB logs in dashboard. [<a href="https://github.com/2Abendsegler/GClh/issues/2484" title="Issue 2484">2484</a> / <a href="https://www.geocaching.com/profile/?u=capoaira" title="Thanks to capoaira">capoaira</a>]<br>
</li>
<li>
<strong>Fix:</strong> [New Dashboard] Clicking on a TB in Latest Activity area causes an Uncaught TypeError. [<a href="https://github.com/2Abendsegler/GClh/issues/2467" title="Issue 2467">2467</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
</ul>
<br>
(02.12.2023)<br>
released by <a href="https://www.geocaching.com/profile/?u=2Abendsegler">2Abendsegler</a><br>
<br>

---
## v0.15:
&nbsp; &nbsp; <img src="../images/flag_ua.png" alt="" title="Stand with Ukraine"><br>
Expand Down
34 changes: 17 additions & 17 deletions gc_little_helper_II.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// @name GC little helper II
// @description Some little things to make life easy (on www.geocaching.com).
//--> $$000
// @version 0.15
// @version 0.15.1
//<-- $$000
// @copyright 2010-2016 Torsten Amshove, 2016-2023 2Abendsegler, 2017-2021 Ruko2010, 2019-2023 capoaira
// @author Torsten Amshove; 2Abendsegler; Ruko2010; capoaira
Expand Down Expand Up @@ -4735,9 +4735,8 @@ var mainGC = function() {
try {
var nextData = JSON.parse($('#__NEXT_DATA__')[0].innerText);
} catch(e) {}
if (typeof nextData !== 'undefined' && nextData.props && nextData.props.pageProps) {
if (typeof nextData !== 'undefined' && typeof nextData.props !== 'undefined' && typeof nextData.props.pageProps !== 'undefined') {
var pageData = nextData.props.pageProps;
if (pageData.isEvent) var isEvent = pageData.isEvent;
}
}
let css = '';
Expand Down Expand Up @@ -4798,7 +4797,7 @@ var mainGC = function() {
if ($('.hidden-by a')[0] && $('.hidden-by a')[0].innerText) {
// Get default logtype.
let logtype = decode_innerText($('.hidden-by a')[0]) == global_me ? settings_default_logtype_owner
: isEvent ? settings_default_logtype_event
: pageData.isEvent ? settings_default_logtype_event
: isTB ? settings_default_tb_logtype : settings_default_logtype;
// Return if no logtype is selected or selected logtype is not possible.
if (logtype == -1 || !pageData.logTypes.some(e => e.value == logtype)) return;
Expand All @@ -4809,7 +4808,7 @@ var mainGC = function() {
waitCount++; if (waitCount <= 1000) setTimeout(function(){setDefaultLogtype(waitCount);}, 10);
}
try {
if (!document.location.href.match(/logType=/i) && typeof pageData != 'undefined'
if (!document.location.href.match(/logType=/i) && typeof pageData !== 'undefined' && typeof pageData.isEvent !== 'undefined' && typeof pageData.logTypes !== 'undefined' && typeof pageData.logTypes.some !== 'undefined'
&& ((!isDraft && !isTB && (settings_default_logtype || settings_default_logtype_event || settings_default_logtype_owner))
|| isTB && settings_default_tb_logtype)) {
setDefaultLogtype(0);
Expand Down Expand Up @@ -5273,9 +5272,8 @@ var mainGC = function() {
try {
var nextData = JSON.parse($('#__NEXT_DATA__')[0].innerText);
} catch(e) {}
if (typeof nextData !== 'undefined' && nextData.props && nextData.props.pageProps) {
if (typeof nextData !== 'undefined' && typeof nextData.props !== 'undefined' && typeof nextData.props.pageProps !== 'undefined') {
var pageData = nextData.props.pageProps;
if (pageData.logText) var logText = pageData.logText;
}
}
let css = '';
Expand All @@ -5293,17 +5291,19 @@ var mainGC = function() {

// Build copy to clipboard icon for logtext.
function buildCopyToClipboardForLogtext(waitCount) {
if (logText && logText != '' && $('li.meta-data-item:last span.meta-data-label')[0] && !$('#gclh_copyLogtextToClipboard')[0]) {
if ($('li.meta-data-item:last span.meta-data-label')[0] && !$('#gclh_copyLogtextToClipboard')[0]) {
$('li.meta-data-item:last span.meta-data-label').after('<span id="gclh_copyLogtextToClipboard"><span></span></span>');
addCopyToClipboardLink(logText, $('#gclh_copyLogtextToClipboard span')[0], 'Logtext', 'float: right; margin-right: 8px;');
addCopyToClipboardLink(pageData.logText, $('#gclh_copyLogtextToClipboard span')[0], 'Logtext', 'float: right; margin-right: 8px;');
}
waitCount++; if (waitCount <= 100) setTimeout(function(){buildCopyToClipboardForLogtext(waitCount);}, 100);
}
try {
buildCopyToClipboardForLogtext(0);
css += 'li.meta-data-item:last-child {display: block;}';
css += 'li.meta-data-item:last-child > div {display: inline-block; margin-right: 8px;}';
css += 'li.meta-data-item:last-child > svg {display: inline-block; margin-right: 8px; margin-bottom: -2px;}';
if (typeof pageData !== 'undefined' && typeof pageData.logText !== 'undefined' && pageData.logText != '') {
buildCopyToClipboardForLogtext(0);
css += 'li.meta-data-item:last-child {display: block;}';
css += 'li.meta-data-item:last-child > div {display: inline-block; margin-right: 8px;}';
css += 'li.meta-data-item:last-child > svg {display: inline-block; margin-right: 8px; margin-bottom: -2px;}';
}
} catch(e) {gclh_error("Build copy to clipboard icon for logtext in improve log view",e);}

// Append the style.
Expand Down Expand Up @@ -14109,7 +14109,7 @@ var mainGC = function() {
// Weihnachten 2023.
if (month == 12 && year == 2023) {
var max = 0;
if (date >= 24 && date <= 26) max = 100;
if ((date >= 5 && date <= 6) || (date >= 24 && date <= 26)) max = 100;
if (max > 0) {
function checkChristmasData(waitCount) {
if ($('.gclh_latest_log').length > 0) {
Expand Down Expand Up @@ -14515,8 +14515,8 @@ var mainGC = function() {
//--> $$002
code += '<img src="https://c.andyhoppe.com/1643060379"' + prop; // Besucher
code += '<img src="https://c.andyhoppe.com/1643060408"' + prop; // Seitenaufrufe
code += '<img src="https://s11.flagcounter.com/count2/GWJ6/bg_FFFFFF/txt_000000/border_CCCCCC/columns_6/maxflags_60/viewers_0/labels_1/pageviews_1/flags_0/percent_0/"' + prop;
code += '<img src="https://www.worldflagcounter.com/iFT"' + prop;
code += '<img src="https://s11.flagcounter.com/count2/vrdP/bg_FFFFFF/txt_000000/border_CCCCCC/columns_6/maxflags_60/viewers_0/labels_1/pageviews_1/flags_0/percent_0/"' + prop;
code += '<img src="https://www.worldflagcounter.com/iF5"' + prop;
//<-- $$002
div.innerHTML = code;
side.appendChild(div);
Expand Down Expand Up @@ -15896,7 +15896,7 @@ var mainGC = function() {
html += thanksLineBuild("V60", "V60GC", false, false, false, true, false);
html += thanksLineBuild("vylda", "", false, false, false, true, false);
html += thanksLineBuild("winkamol", "", false, false, false, true, false);
var thanksLastUpdate = "26.11.2023";
var thanksLastUpdate = "02.12.2023";
//<-- $$006
html += " </tbody>";
html += "</table>";
Expand Down
Binary file added images/0.15.1/Screen01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/0.15.1/Screen02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/0.15.1/Screen03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/0.15.1/Screen04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/0.15.1/Screen05.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion last_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15
0.15.1

0 comments on commit 6e90c6f

Please sign in to comment.