Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roe-dl/display-mastodon-js
Display the last Mastodon message of a certain account
https://github.com/roe-dl/display-mastodon-js
javascript mastodon mastodon-client
Last synced: 15 days ago
JSON representation
Display the last Mastodon message of a certain account
- Host: GitHub
- URL: https://github.com/roe-dl/display-mastodon-js
- Owner: roe-dl
- License: gpl-3.0
- Created: 2023-12-25T16:48:00.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2023-12-25T17:18:47.000Z (11 months ago)
- Last Synced: 2024-10-10T12:41:18.381Z (about 1 month ago)
- Topics: javascript, mastodon, mastodon-client
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# display-mastodon-js
Display the last Mastodon message of a certain accountThis is a very basic script to display the last message of a certain
Mastodon account within a web page, including links and attachments.
No authentication is required because publicly available messages
are displayed only.Note: There are no plans to write a Mastodon client.
## Prerequisites
* jQuery is required.
* a Mastodon account## Installation
1. Copy `mastodon.js` out of the sub-directory `js` to your web server.
2. Edit `mastodon.js` and set up the server and the account:
* `mastodon_server`: name of the Mastodon server without `https://`,
for example `mastodon.social`
* `mastodon_account`: the account, a longish number3. Include into your HTML page:
```HTML
```Adjust `src="mastodon.js"` to the path where the script file is to be found
in your environment.## Usage
Every minute the script fetches the last message and displays it.