Skip to content

Commit

Permalink
GoLive v0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
2Abendsegler authored Aug 30, 2024
2 parents 2d866ff + a0b57af commit 7d16e99
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 10 deletions.
1 change: 1 addition & 0 deletions data/config_standard.txt
Original file line number Diff line number Diff line change
Expand Up @@ -383,4 +383,5 @@
"settings_larger_content_width_log_form": true,
"settings_less_space_log_lines_log_form": true,
"settings_listing_bigger_avatar_with_mouse": true
"settings_listing_ctoc_coords_waypoints": true
}
27 changes: 27 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="#v0162" title="GClh II version 0.16.2 (30.08.2024)">v0.16.2</a> &nbsp;
<a href="#v0161" title="GClh II version 0.16.1 (13.08.2024)">v0.16.1</a> &nbsp;
<a href="#v016" title="GClh II version 0.16 (13.08.2024)">v0.16</a> &nbsp;
<a href="#v0159" title="GClh II version 0.15.9 (13.06.2024)">v0.15.9</a> &nbsp;
Expand Down Expand Up @@ -50,6 +51,32 @@
<a href="changelog_before.md" title="Go to earlier changelog">Earlier changelog</a> &nbsp;
<span id="readme"></span>

---
## v0.16.2:
&nbsp; &nbsp; <img src="../images/flag_ua.png" alt="" title="Stand with Ukraine"><br>
<ul>
<li>
<strong>New:</strong> [Cache Listing] New button to "Copy Coordinates to Clipboard" for every waypoint. [<a href="https://github.com/2Abendsegler/GClh/issues/2650" title="Issue 2650">2650</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
<img src="../images/0.16.2/Screen02.jpg" alt="Screen02.jpg"><br>
<a href="https://www.geocaching.com/my/#GClhShowConfig#a#settings_listing_ctoc_coords_waypoints" title="Link to your GClh II Config">Settings -> Listing - Additional Waypoints:<br>
<img src="../images/0.16.2/Screen01.jpg" alt="Screen01.jpg"></a><br><br>
</li>
<li>
<strong>Note:</strong> [Google Chrome, Tampermonkey] Scripts do not start.<br>
If scripts no longer start in browser Google Chrome with script manager Tampermonkey, then this could be due to a bug in Tampermonkey. Please install the latest version of Tampermonkey.<br><br>
</li>
<li>
<strong>Fix:</strong> [Statistic] Country links to caches you have found do not work. [<a href="https://github.com/2Abendsegler/GClh/issues/2648" title="Issue 2648">2648</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
<li>
<strong>Fix:</strong> [Search] Alignment of search buttons on filters incorrect. [<a href="https://github.com/2Abendsegler/GClh/issues/2647" title="Issue 2647">2647</a> / <a href="https://www.geocaching.com/profile/?u=2Abendsegler" title="Thanks to 2Abendsegler">2Abendsegler</a>]<br>
</li>
</ul>
<br>
(30.08.2024)<br>
released by <a href="https://www.geocaching.com/profile/?u=2Abendsegler">2Abendsegler</a><br>
<br>

---
## v0.16.1:
&nbsp; &nbsp; <img src="../images/flag_ua.png" alt="" title="Stand with Ukraine"><br>
Expand Down
39 changes: 30 additions & 9 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.16.1
// @version 0.16.2
//<-- $$000
// @copyright 2010-2016 Torsten Amshove, 2016-2024 2Abendsegler, 2017-2021 Ruko2010, 2019-2024 capoaira
// @author Torsten Amshove; 2Abendsegler; Ruko2010; capoaira
Expand Down Expand Up @@ -738,6 +738,7 @@ var variablesInit = function(c) {
c.settings_larger_content_width_log_form = getValue("settings_larger_content_width_log_form", true);
c.settings_less_space_log_lines_log_form = getValue("settings_less_space_log_lines_log_form", true);
c.settings_listing_bigger_avatar_with_mouse = getValue("settings_listing_bigger_avatar_with_mouse", true);
c.settings_listing_ctoc_coords_waypoints = getValue("settings_listing_ctoc_coords_waypoints", true);

tlc('START userToken');
try {
Expand Down Expand Up @@ -2426,7 +2427,7 @@ var mainGC = function() {
if (getValue("settings_new_width") > 0) var new_width = parseInt(getValue("settings_new_width")) - 310 - 180;
else var new_width = 950 - 310 - 180;
var css = "a.gclh_latest_log:hover {position: relative;}"
+ "a.gclh_latest_log span {display: none; position: absolute; left: -" + new_width + "px; width: " + new_width + "px; padding: 5px; text-decoration:none; text-align:left; vertical-align:top; color: #000000;}"
+ "a.gclh_latest_log span {display: none; position: absolute; left: -" + new_width + "px; width: " + new_width + "px; margin-left: 6px; padding: 5px; text-decoration:none; text-align:left; vertical-align:top; color: #000000;}"
+ "a.gclh_latest_log:hover span {font-size: 13px; display: block; top: 16px; border: 1px solid #8c9e65; background-color:#dfe1d2; z-index:10000;}";
appendCssStyle(css);
// In den GC Logs ist die Id für die Logs immer die Gleiche ..., ja doch ..., is klar ne ..., GS halt.
Expand Down Expand Up @@ -3767,6 +3768,22 @@ var mainGC = function() {
$('.ShowWarningMessage')[0].addEventListener("mouseover", warnMessageMouseOver, false);
}

// Set copy to clipboard button for Waypoints.
if (settings_listing_ctoc_coords_waypoints && is_page("cache_listing")) {
try {
var tbl = getWaypointTable();
var length = tbl.find("tbody > tr").length;
for (var i=0; i<length/2; i++) {
var row1st = tbl.find("tbody > tr").eq(i*2);
var cellCoordinates = row1st.find("td:eq(5)");
var tmp_coords = toDec(cellCoordinates.text().trim());
if (typeof tmp_coords[0] !== 'undefined' && typeof tmp_coords[1] !== 'undefined') {
addCopyToClipboardLink(cellCoordinates.text().trim(), cellCoordinates[0].childNodes[0], "Coordinates");
}
}
} catch(e) {gclh_error("Set copy to clipboard button for Waypoints",e);}
}

// Driving direction for every waypoint.
if (settings_driving_direction_link && (is_page("cache_listing") || document.location.href.match(/\.com\/hide\/wptlist.aspx/))) {
try {
Expand Down Expand Up @@ -8021,6 +8038,7 @@ var mainGC = function() {
" top: -310px;" +
" left: -702px;" +
" width: 700px;" +
" margin-left: 6px;" +
" padding: 5px;" +
" text-decoration: none;" +
" text-align: left;" +
Expand Down Expand Up @@ -11887,7 +11905,7 @@ var mainGC = function() {
css += '#gclh_third_line img, #gclh_third_line svg {vertical-align: middle !important;}';
css += '#gclh_latest_logs, #gclh_third_line {position: relative;}';
css += 'div.gclh_latest_log span, span.gclh_cache_note span {display: none; position: absolute; left: 0px; width: 95%; padding: 5px; text-decoration:none; text-align:left; vertical-align:top; color: #000000; word-break: break-word;}';
css += 'div.gclh_latest_log:hover span, span.gclh_cache_note:hover span {font-size: 13px; display: block; top: 100%; border: 1px solid #8c9e65; background-color:#dfe1d2; z-index:10000;}';
css += 'div.gclh_latest_log:hover span, span.gclh_cache_note:hover span {font-size: 13px; display: block; top: 100%; margin-top: -5px; border: 1px solid #8c9e65; background-color:#dfe1d2; z-index:10000;}';
css += 'div.gclh_latest_log:hover img, span.gclh_cache_note:hover svg {opacity: 0.5;}';
css += 'div.gclh_latest_log:hover span img {opacity: 1;}';
css += '#searchmap_sidebar_enhancements {color: #4a4a4a;}';
Expand Down Expand Up @@ -13120,7 +13138,7 @@ var mainGC = function() {
if (item && item[0]) {
var a = document.createElement("a");
a.setAttribute("title", "Show caches you have found in " + item[0]["n"]);
a.setAttribute("href", "/play/search?ot=4&"+parameter+"=" + item[0]["id"] + "&f=1&sort=FoundDate&asc=True#myListsLink");
a.setAttribute("href", "/play/search?ot=country&hf=0&sa=1&"+parameter+"=" + item[0]["id"] + "&f=1&sort=FoundDate&asc=false#myListsLink");
a.setAttribute("style", "color: #3d76c5;");
a.innerHTML = tableItems[i].children[0].innerHTML;
tableItems[i].children[0].innerHTML = "";
Expand Down Expand Up @@ -14972,8 +14990,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/sVd5/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/iLr"' + prop;
code += '<img src="https://s11.flagcounter.com/count2/OMJZ/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/iLI"' + prop;
//<-- $$002
div.innerHTML = code;
side.appendChild(div);
Expand Down Expand Up @@ -16331,6 +16349,7 @@ var mainGC = function() {
html += thanksLineBuild("BlueEagle23", "", false, false, false, true, false);
html += thanksLineBuild("Cappa-d", "", false, false, false, true, false);
html += thanksLineBuild("Chrono81", "", false, false, false, true, false);
html += thanksLineBuild("", "dcjkfgdjhd", false, false, false, true, false);
html += thanksLineBuild("dennistreysa", "", false, false, false, true, false);
html += thanksLineBuild("Die C-SAU Bande", "UJstr", false, false, false, true, false);
html += thanksLineBuild("Donnerknispel", "", false, false, false, true, false);
Expand All @@ -16354,7 +16373,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 = "13.08.2024";
var thanksLastUpdate = "30.08.2024";
//<-- $$006
html += " </tbody>";
html += "</table>";
Expand Down Expand Up @@ -16973,6 +16992,7 @@ var mainGC = function() {
html += checkboxy('settings_hide_hint', 'Hide the additional hints behind a link') + show_help("This option hides the hints behind a link. You have to click it to display the hints (already decrypted). This option remove also the description of the decryption.") + "<br>";

html += "<div style='margin-top: 9px; margin-left: 5px'><b>Additional Waypoints</b>" + "</div>";
html += checkboxy('settings_listing_ctoc_coords_waypoints', 'Show "Copy Coordinates to Clipboard" button for every waypoint') + show_help("Shows for every waypoint in the waypoint list a button to copy the coordinates of the waypoint to the clipboard.") + "<br>";
html += checkboxy('settings_driving_direction_link', 'Show link to Google driving direction for every waypoint') + show_help("Shows for every waypoint in the waypoint list a link to Google driving direction from home location to coordinates of the waypoint.") + "<br>";
html += "&nbsp; " + checkboxy('settings_driving_direction_parking_area', 'Only for parking area waypoints') + "<br>";
html += checkboxy('settings_show_elevation_of_waypointsX0', 'Show elevations for listing coordinates and additional waypoints') + show_help("Shows the elevation of the listing coordinates and of every additional waypoint. Select the order of the elevation service or deactivate it. Queries to the Google Elevation service are limited. Hover of the elevation data of a waypoint shows a tooltip with the used service.") + "<br>";
Expand Down Expand Up @@ -18463,6 +18483,7 @@ var mainGC = function() {
'settings_larger_content_width_log_form',
'settings_less_space_log_lines_log_form',
'settings_listing_bigger_avatar_with_mouse',
'settings_listing_ctoc_coords_waypoints',
);
for (var i = 0; i < checkboxes.length; i++) {
if (document.getElementById(checkboxes[i])) setValue(checkboxes[i], document.getElementById(checkboxes[i]).checked);
Expand Down Expand Up @@ -19097,7 +19118,7 @@ var mainGC = function() {
// Build line with user and contribution on config screen "thanks".
function thanksLineBuild(gcname, ghname, proj, devl, dev, err, sepa) {
return "<tr " + (sepa == true ? "class='separator'" : "") + ">" +
"<td>" + (gcname != "" ? "<a href='/profile/?u="+urlencode(gcname)+"' target='_blank' title='GC profile for "+gcname+"'>"+gcname+"</a>" : ghname) + "</td>" +
"<td>" + (gcname != "" ? "<a href='/profile/?u="+urlencode(gcname)+"' target='_blank' title='GC profile for "+gcname+"'>"+gcname+"</a>" : "<span title='"+ghname+"'>"+ghname+"</span>") + "</td>" +
thanksFlagBuild(proj) + thanksFlagBuild(devl) + thanksFlagBuild(dev) + thanksFlagBuild(err) + "</tr>";
}
function thanksFlagBuild(flag) {return "<td><img src='" + (flag == true ? global_green_tick : "") + "'></td>";}
Expand Down Expand Up @@ -20427,7 +20448,7 @@ function is_page(name) {
} else if (name == "map") {
if (url.match(/^\/map/)) status = true;
} else if (name == "find_cache") {
if (url.match(/^\/play\/(search|geocache)/)) status = true;
if (url.match(/^\/play\/(results|search|geocache)/)) status = true;
} else if (name == "collection_1") {
if (url.match(/^\/play\/(friendleague|leaderboard|souvenircampaign|guidelines|promotions)/)) status = true;
} else if (name == "hide_cache") {
Expand Down
Binary file added images/0.16.2/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.16.2/Screen02.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.16.1
0.16.2

0 comments on commit 7d16e99

Please sign in to comment.