Created
June 22, 2017 11:12
Star
You must be signed in to star a gist
Largeur des colonnes auto pour Mastodon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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