ShadeFix Minds

ShadeFix for Minds, broadening the central content on any page

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 1.0.2a
  4. // Date of issue: 26/09/16
  5. // Date of resolution: 27/09/16
  6. //
  7. // ==UserScript==
  8. // @name ShadeFix Minds
  9. // @namespace SFMI
  10. // @version 0.1.0a
  11. // @grant none
  12. // @icon http://i.imgur.com/lvuAvcb.png
  13. // @description ShadeFix for Minds, broadening the central content on any page
  14.  
  15. // @include http://*.minds.com/*
  16. // @include https://*.minds.com/*
  17.  
  18. // ==/UserScript==
  19.  
  20. function ShadeFixMinds(css) {
  21. var head, style;
  22. head = document.getElementsByTagName('head')[0];
  23. if (!head) { return; }
  24. style = document.createElement('style');
  25. style.type = 'text/css';
  26. style.innerHTML = css;
  27. head.appendChild(style);
  28. }
  29.  
  30. ShadeFixMinds(
  31. 'minds-body minds-newsfeed .newsfeed-grid, minds-channel .channel-grid {max-width: 70vw !important;}'
  32. +
  33. '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;}'
  34. );