Skip to content

Commit 73e3400

Browse files
capoairaLineflyer
authored andcommitted
use the new icon
1 parent b30e8fb commit 73e3400

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

Diff for: send2cgeo.user.js

+14-13
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function s2cgGCMain() {
200200
var html = '<td class="mobile-show" >'
201201
+ '<a id="s2cg-' + GCCode + '" href="https://send2.cgeo.org/add.html?cache=' + GCCode + '" '
202202
+ "onclick='window.s2geo(\"" + GCCode + "\"); return false;' send2cgeo_gccode='" + GCCode + "'>"
203-
+ '<img height="50" src="https://send2.cgeo.org/send2cgeo.png" '
203+
+ '<img height="50" src="https://www.cgeo.org/send2cgeo.png" '
204204
+ 'border="0"> '
205205
+ '</a></td>';
206206

@@ -328,7 +328,7 @@ function s2cgGCMain() {
328328
function buildButton(GCCode, anchor, height, imgClass='') {
329329
// Add s2cg button.
330330
var html = '<a id="s2cg-' + GCCode + '" href="javascript:void(0);" title="Send to c:geo">'
331-
+ '<img class="' + imgClass + '" src="https://send2.cgeo.org/send2cgeo.png" height="' + height + '"/>'
331+
+ '<img class="' + imgClass + '" src="https://www.cgeo.org/send2cgeo.png" height="' + height + '"/>'
332332
+ '</a>';
333333

334334
$(anchor).append(html);
@@ -384,7 +384,7 @@ function s2cgGCMain() {
384384
if (document.location.href.match(/\.com\/map/)) {
385385
var template = $("#cacheDetailsTemplate").html();
386386
var html = '<a href="javascript:void(0);" onclick="window.s2geo(\'{{=gc}}\'); return false;">'
387-
+ '<img height="16px" src="https://send2.cgeo.org/send2cgeo.png" />'
387+
+ '<img height="16px" src="https://www.cgeo.org/send2cgeo.png" />'
388388
+ '<span>Send to c:geo</span></a>';
389389

390390
var searchpos = template.indexOf('/images/icons/16/write_log.png');
@@ -481,28 +481,29 @@ function s2cgGCMain() {
481481
if (document.location.href.match(/\.com\/(seek\/cache_details\.aspx|geocache\/)/)) {
482482
var GCCode = $("#ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode").html();
483483

484-
var html2 = '<dt><a href="javascript:void(0);" onclick="window.s2geo(\'' + GCCode + '\'); return false;">'
485-
+ '<img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="16px" />'
484+
var html2 = '<dt><a href="javascript:void(0);" onclick="window.s2geo(\'' + GCCode + '\'); return false;" style="display:flex;">'
485+
+ '<img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="16px" />'
486486
+ '<span>Send to c:geo</span></a></dt>';
487487

488488
$("#Download dd:last").append(html2);
489489
}
490490

491491
// Send to c:geo on recentlyviewed and nearest list
492492
if (document.location.href.match(/\.com\/seek\/nearest\.aspx/) || document.location.href.match(/\.com\/my\/recentlyviewedcaches\.aspx/)) {
493-
$('.BorderTop th').first().after('<th><img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
493+
$('.BorderTop th').first().after('<th><img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
494494
$('.Data.BorderTop').each(
495495
function() {
496496
var text = $(this).find(".Merge").last().find("span.small").first().text().split("|");
497497
var GCCode = text[text.length - 2].trim();
498498
var html = '<td><a href="javascript:void(0);" onclick="window.s2geo(\'' + GCCode + '\'); return false;">'
499-
+ ' <img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" />'
499+
+ ' <img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" />'
500500
+ '</a></td>';
501501
$(this).find('td').first().after(html);
502502
}
503503
);
504504
}
505505

506+
// Send to c:geo on new List / new BML
506507
if (document.location.href.match(/\.com\/plan\/lists\/BM/)) {
507508
// observer callback
508509
let cb = function() {
@@ -528,15 +529,15 @@ function s2cgGCMain() {
528529
if ($('.multi-select-action-bar')[0]) {
529530
removeIfAlreadyExists('#s2cgeo-selected', $('#s2cgeo-selected'));
530531
$('.multi-select-action-bar-count-section').after('<a id="s2cgeo-selected" href="javascript:void(0);">'
531-
+ ' <img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="29px" />'
532+
+ ' <img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="45px" style="margin-right:8px" />'
532533
+ '</a>');
533534
$('#s2cgeo-selected').on('click', function() {
534535
sendList('selected');
535536
});
536537
}
537538

538539
removeIfAlreadyExists('.header-s2cgeo', $('.header-s2cgeo'));
539-
$('.geocache-table thead th.header-geocache-name').before('<th class="header-s2cgeo"><img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
540+
$('.geocache-table thead th.header-geocache-name').before('<th class="header-s2cgeo"><img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
540541

541542
$('.geocache-table tbody tr').each(
542543
function() {
@@ -586,7 +587,7 @@ function s2cgGCMain() {
586587
observer.disconnect();
587588

588589
removeIfAlreadyExists('.header-s2cgeo', $('.header-s2cgeo'));
589-
$('.geocache-table thead th.header-name').before('<th class="header-s2cgeo"><img src="https://send2.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
590+
$('.geocache-table thead th.header-name').before('<th class="header-s2cgeo"><img src="https://www.cgeo.org/send2cgeo.png" title="Send to c:geo" height="20px" /></th>');
590591

591592
$('.geocache-table tbody tr').each(
592593
function() {
@@ -613,8 +614,8 @@ function s2cgGCMain() {
613614
var occode = document.title;
614615
occode = occode.substring(0, occode.indexOf(" ", 0));
615616

616-
var html = '<img src="https://send2.cgeo.org/send2cgeo.png" height="16px" />'
617-
+ '<a href="javascript:void(0);" onclick="window.s2geo(\'' + occode + '\'); return false;" >'
617+
var html = '<img src="https://www.cgeo.org/send2cgeo.png" height="16px" />'
618+
+ '<a href="javascript:void(0);" onclick="window.s2geo(\'' + occode + '\'); return false;" >&nbsp;'
618619
+ '<input class="exportbutton" type="button" value="An c:geo senden" title="Send to c:geo" /></a> '
619620
+ '</p>';
620621

@@ -787,7 +788,7 @@ function s2cgGCMain() {
787788
if (document.location.href.match(/\.de\/myhome\.php/)) {
788789
$('.content2-pagetitle').after('<div class="content2-container bg-blue02" style="margin-top:20px;">'
789790
+ ' <p class="content-title-noshade-size3">'
790-
+ ' <img src="https://send2.cgeo.org/send2cgeo.png" style="margin-right:10px;" height="22px" />'
791+
+ ' <img src="https://www.cgeo.org/send2cgeo.png" style="margin-right:10px;" height="22px" />'
791792
+ ' Send to c:geo <span class="content-title-link"><a id="s2cg_openSettings" href="javascript:void(0)">Settings</a></span>'
792793
+ ' </p>'
793794
+ '</div>');

0 commit comments

Comments
 (0)