/**
* Mastodon embed feed timeline v3.13.1-1
* More info at:
* https://gitlab.com/idotj/mastodon-embed-feed-timeline
*/
/**
* This file contains modifications to the above upstream project.
* The file repository for these modifications can be found here:
* https://gitlab.com/clvgt12/mastodon-embed-feed-timeline
*
* Mastodon embed feed timeline
* Copyright (C) 2022 clvgt12
* Copyright (C) 2021 i.j
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* Timeline settings
* Adjust these parameters to customize your timeline
*/
/** ------------------------------------------------------
window.addEventListener("load", () => {
const mastodonTimeline = new MastodonApi({
// Id of the <div> containing the timeline
container_body_id: "mt-body",
// Class name for the loading spinner (also used in CSS file)
spinner_class: "loading-spinner",
// Preferred color theme: 'light', 'dark' or 'auto'. Default: auto
default_theme: "auto",
// Your Mastodon instance
instance_url: "https://mastdn.social",
// Choose type of toots to show in the timeline: 'local', 'profile', 'hashtag'. Default: local
timeline_type: "local",
// Your user ID number on Mastodon instance. Leave it empty if you didn't choose 'profile' as type of timeline
user_id: "",
// Your user name on Mastodon...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.