From 73e34009c81338227506d56da87e99577a2d6423 Mon Sep 17 00:00:00 2001 From: capoaira Date: Wed, 26 Aug 2020 14:02:42 +0200 Subject: [PATCH] use the new icon --- send2cgeo.user.js | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/send2cgeo.user.js b/send2cgeo.user.js index 1de4486..7138277 100644 --- a/send2cgeo.user.js +++ b/send2cgeo.user.js @@ -200,7 +200,7 @@ function s2cgGCMain() { var html = '' + '" - + ' ' + ''; @@ -328,7 +328,7 @@ function s2cgGCMain() { function buildButton(GCCode, anchor, height, imgClass='') { // Add s2cg button. var html = '' - + '' + + '' + ''; $(anchor).append(html); @@ -384,7 +384,7 @@ function s2cgGCMain() { if (document.location.href.match(/\.com\/map/)) { var template = $("#cacheDetailsTemplate").html(); var html = '' - + '' + + '' + 'Send to c:geo'; var searchpos = template.indexOf('/images/icons/16/write_log.png'); @@ -481,8 +481,8 @@ function s2cgGCMain() { if (document.location.href.match(/\.com\/(seek\/cache_details\.aspx|geocache\/)/)) { var GCCode = $("#ctl00_ContentBody_CoordInfoLinkControl1_uxCoordInfoCode").html(); - var html2 = '
' - + '' + var html2 = '
' + + '' + 'Send to c:geo
'; $("#Download dd:last").append(html2); @@ -490,19 +490,20 @@ function s2cgGCMain() { // Send to c:geo on recentlyviewed and nearest list if (document.location.href.match(/\.com\/seek\/nearest\.aspx/) || document.location.href.match(/\.com\/my\/recentlyviewedcaches\.aspx/)) { - $('.BorderTop th').first().after(''); + $('.BorderTop th').first().after(''); $('.Data.BorderTop').each( function() { var text = $(this).find(".Merge").last().find("span.small").first().text().split("|"); var GCCode = text[text.length - 2].trim(); var html = '' - + ' ' + + ' ' + ''; $(this).find('td').first().after(html); } ); } + // Send to c:geo on new List / new BML if (document.location.href.match(/\.com\/plan\/lists\/BM/)) { // observer callback let cb = function() { @@ -528,7 +529,7 @@ function s2cgGCMain() { if ($('.multi-select-action-bar')[0]) { removeIfAlreadyExists('#s2cgeo-selected', $('#s2cgeo-selected')); $('.multi-select-action-bar-count-section').after('' - + ' ' + + ' ' + ''); $('#s2cgeo-selected').on('click', function() { sendList('selected'); @@ -536,7 +537,7 @@ function s2cgGCMain() { } removeIfAlreadyExists('.header-s2cgeo', $('.header-s2cgeo')); - $('.geocache-table thead th.header-geocache-name').before(''); + $('.geocache-table thead th.header-geocache-name').before(''); $('.geocache-table tbody tr').each( function() { @@ -586,7 +587,7 @@ function s2cgGCMain() { observer.disconnect(); removeIfAlreadyExists('.header-s2cgeo', $('.header-s2cgeo')); - $('.geocache-table thead th.header-name').before(''); + $('.geocache-table thead th.header-name').before(''); $('.geocache-table tbody tr').each( function() { @@ -613,8 +614,8 @@ function s2cgGCMain() { var occode = document.title; occode = occode.substring(0, occode.indexOf(" ", 0)); - var html = '' - + '' + var html = '' + + ' ' + ' ' + '

'; @@ -787,7 +788,7 @@ function s2cgGCMain() { if (document.location.href.match(/\.de\/myhome\.php/)) { $('.content2-pagetitle').after('
' + '

' - + ' ' + + ' ' + ' Send to c:geo Settings' + '

' + '
');