Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# display-mastodon-js
Display the last Mastodon message of a certain account

This 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 number

3. Include into your HTML page:

```HTML




msgid:


```

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.