From 587bc2504122860faa9e4f6cb822cbf2b75b1074 Mon Sep 17 00:00:00 2001 From: "i.j" Date: Sat, 14 Jan 2023 15:46:26 +0000 Subject: [PATCH] Add alternative way to get Mastodon user id --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1699d86..32469e0 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,17 @@ For that, edit the the JS file *mastodon-timeline.js* and at the beginning repl profile_name: 'Your user name on Mastodon instance', ``` -If you don't find your user_id, just copy your @profile_name and @instance_uri here: +If you don't know your user_id, you have two ways to get it: + +- Right click on your avatar image and inspect the element. You will see in your html code a line like this one: +`xxxx` +Check the `src=""` url, your user id is between `/accounts/avatars/` and `/original/`. So removing the slashs `/` you will get your user id, like in the example: `000180745` + + +- Other option, just copy your @profile_name and @instance_uri here: https://prouser123.me/mastodon-userid-lookup/ -Also you can customize some parameters such as: +Also you can customize some parameters: ``` // The maximun amount of toots to get from the user