Skip to content

Instantly share code, notes, and snippets.

@Liandriz
Created June 22, 2017 11:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Liandriz/e8bc23eaaaee9ebddb0f3158947a06d1 to your computer and use it in GitHub Desktop.
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