From 4eb158d60c41dd72919346bbc1bdbdfa52513220 Mon Sep 17 00:00:00 2001 From: Franzz Date: Thu, 21 Jan 2021 21:54:52 +0100 Subject: [PATCH] Support update of all items --- gaia/tracks.js | 248 ++++++++++++++++++++++++++++++------------------- gaia/upload.js | 29 +++++- 2 files changed, 175 insertions(+), 102 deletions(-) diff --git a/gaia/tracks.js b/gaia/tracks.js index deb4afd..d6eae4a 100644 --- a/gaia/tracks.js +++ b/gaia/tracks.js @@ -1,35 +1,35 @@ // ==UserScript== -// @name GaiaGps Track Colors Mass Updater -// @description Add missing feature: Mass update of GaiaGps Track Colors -// @version 1.0 +// @name GaiaGps Track Colors Mass Updater +// @description Add missing feature: Mass update of GaiaGps Track Colors +// @version 1.1 // @grant none // @match https://www.gaiagps.com/datasummary/tracks/ -// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js -// @namespace https://greasyfork.org/users/583371 +// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js +// @namespace https://greasyfork.org/users/583371 // ==/UserScript== console.log('computes'); function init() { - $Selector = $('
'); + $Selector = $('
'); - $Selector.css('z-index', '10000').find('li').click(setColor); - //Background - $Background = $('
', {'aria-hidden':'true', 'style':'position: fixed; inset: 0px; background-color: transparent;'}).click(function(){toggleSelector(false);}); + $Selector.css('z-index', '10000').find('li').click(setColor); + //Background + $Background = $('
', {'aria-hidden':'true', 'style':'position: fixed; inset: 0px; background-color: transparent;'}).click(function(){toggleSelector(false);}); - //Add Selector & background to DOM - $Selector.add($Background).hide().appendTo('body'); + //Add Selector & background to DOM + $Selector.add($Background).hide().appendTo('body'); - //Extra style - $('body').append($('