Greasy Fork

Greasy Fork is available in English.

Patreon Wide Theme

Adjusts Patreon pages to show more content if screen is wider than 1100 pixels.

当前为 2016-03-16 提交的版本,查看 最新版本

// ==UserScript==
// @name     	Patreon Wide Theme
// @description	Adjusts Patreon pages to show more content if screen is wider than 1100 pixels.
// @include  	*.patreon.com/*
// @include  	*.patreon.com/
// @version	1.0
// @run-at 	document-start
// @grant    	GM_addStyle
// @namespace http://greasyfork.icu/users/33744
// ==/UserScript==

function addGlobalStyle(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);
}

addGlobalStyle('@media screen and (min-width: 1100px) {.row .stackable [data-reactid] [data-reactid] div.BUO-components-Card--card { width: 48% !important;margin-left: 1% !important;margin-right: 1% !important;margin-bottom: 2% !important;float: left !important;}.row .stackable [data-reactid] [data-reactid] div.BUO-components-Card--card .text {max-height: 250px !important;    -ms-overflow-y: auto !important;-ms-overflow-y: auto !important;-ms-overflow-y: auto !important;overflow-y: auto !important;padding: 2px !important;}._3KS-components-PostHeader--postInfoRow {white-space: nowrap !important;width: 78% !important;clear: right !important;}._27t-components-PostHeader--timestampLink {width: 60px !important;overflow: hidden !important;display: block !important;position: relative !important;top: -60px !important;left: 110% !important;color: white !important;}._27t-components-PostHeader--timestampLink::before {color: #666 !important;content: "View Post " !important;}.TLZ-components-PostHeader--divider:last-child {display: block !important;clear: right !important;}._3KS-components-PostHeader--postInfoRow .s6W-components-Icon--iconSvg {position: relative !important;bottom: 12px !important;}._2Ut-components-Post--commentStat {display: block !important;clear: right !important;}}');