From 43f92e07308618349787a621e49093aa09f34641 Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Fri, 5 Nov 2021 15:44:45 +0100 Subject: [PATCH] 0.5 --- foodsharing_planner.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foodsharing_planner.user.js b/foodsharing_planner.user.js index 8d01dde..7120828 100644 --- a/foodsharing_planner.user.js +++ b/foodsharing_planner.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Foodsharing Planner // @namespace http://tampermonkey.net/ -// @version 0.4 +// @version 0.5 // @updateURL https://github.com/TroogS/userscripts/blob/master/foodsharing_planner.user.js // @downloadURL https://github.com/TroogS/userscripts/blob/master/foodsharing_planner.user.js // @description Generate a calendar like view as addition to the foodsharing website germany, austria and switzerland @@ -283,7 +283,7 @@ function CreatePickupDiv(data) { if(data.pickup.occupiedSlots.length > 0) { data.pickup.occupiedSlots.forEach(slot => { - var imgUrl = 'images/mini_q_' + slot.profile.avatar; + var imgUrl = 'https://' + window.location.hostname + '/images/mini_q_' + slot.profile.avatar; if(slot.profile.avatar.startsWith('/api/')) imgUrl = slot.profile.avatar + '?w=35&h=35'; var imgClass = "";