Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Largeur des colonnes auto pour Mastodon
// ==UserScript==
// @name Framapiaf
// @namespace https://libox.fr
// @version 1
// @description Améliore l'affichage et l'ergonomie du réseau social Mastodon, source : https://framapiaf.org/@framasky/1279932
// @author Liandri
// @match *://*/web/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
if (document.querySelector('body > #mastodon')) {
console.log('Mastodon détecté, application des styles :)');
GM_addStyle(`
/* Largeur des colonnes : ici 3 colonnes, adapter si besoin*/
.column {
width: calc((100% - 300px) / 3);
}
`);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.