ShadeFix Minds

ShadeFix for Minds, broadening the central content on any page

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

//
// Written by Glenn Wiking
// Script Version: 1.0.2a
// Date of issue: 26/09/16
// Date of resolution: 27/09/16
//
// ==UserScript==
// @name        ShadeFix Minds
// @namespace   SFMI
// @version     0.1.0a
// @grant       none
// @icon        http://i.imgur.com/lvuAvcb.png
// @description ShadeFix for Minds, broadening the central content on any page

// @include     http://*.minds.com/*
// @include     https://*.minds.com/*

// ==/UserScript==

function ShadeFixMinds(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

ShadeFixMinds(
	'minds-body minds-newsfeed .newsfeed-grid, minds-channel .channel-grid {max-width: 70vw !important;}'
	+
	'minds-body minds-newsfeed .newsfeed-grid .mdl-cell--4-col, minds-body minds-newsfeed .newsfeed-grid .mdl-cell--4-col-desktop.mdl-cell--4-col-desktop {width: calc(30.333% - 16px) !important;}'
);