diff --git a/gaia/tracks.js b/gaia/tracks.js new file mode 100644 index 0000000..deb4afd --- /dev/null +++ b/gaia/tracks.js @@ -0,0 +1,211 @@ +// ==UserScript== +// @name GaiaGps Track Colors Mass Updater +// @description Add missing feature: Mass update of GaiaGps Track Colors +// @version 1.0 +// @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 +// ==/UserScript== + +console.log('computes'); + +function init() { + $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);}); + + //Add Selector & background to DOM + $Selector.add($Background).hide().appendTo('body'); + + //Extra style + $('body').append($('