From 3ba24997a2ed75f98f78e83ee9f297200d6daecd Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 26 Nov 2023 22:26:12 +0100 Subject: [PATCH] feat: Make instance and account configurable --- src/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/script.js b/src/script.js index 8743184..b9b39db 100644 --- a/src/script.js +++ b/src/script.js @@ -1,3 +1,7 @@ +const instance = "chaos.social" +const account_id = "109116460625306131" + + const mastodonFeedCreateElement = function(type, className = null) { let element = document.createElement(type); if(null !== className) { @@ -298,7 +302,7 @@ const mastodonFeedLoad = function(url, elementId, options) { xhr.send(); } -apiUrl = 'https://social.queereszentrumtuebingen.de/api/v1/accounts/01JFERHG3QG06PQ7QGYEZ6288P/statuses'; +apiUrl = 'https://' + instance + '/api/v1/accounts/' + account_id + '/statuses'; window.addEventListener("load", () => { mastodonFeedLoad(