Greasy Fork

pepper.pl kafelki

przywraca stary widok dla peppera

当前为 2020-10-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         pepper.pl kafelki
// @namespace    http://pepper.pl/
// @version      0.11
// @description  przywraca stary widok dla peppera
// @author       me__
// @match        https://www.pepper.pl/nowe*
// @include      https://www.pepper.pl/gor*
// @include      https://www.pepper.pl/om*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
  addGlobalStyle('@media (max-width: 1023px){article.thread {width:32.9%;margin:.2%;border:sodil #ff7900 1px;overflow:hiddem;float:left;height:500px;zoom:0.8;padding:5px;}.listLayout-side{width:100%;margin:5px} }')
  addGlobalStyle('@media (min-width: 1024px){article.thread {width:24.3%;margin:.2%;border:sodil #ff7900 1px;overflow:hiddem;float:left;height:500px;zoom:0.8;padding:5px;}.listLayout-side{width:24%;margin:5px} }')
  addGlobalStyle('@media (min-width: 1600px){article.thread {width:19.5%;margin:.2%;border:sodil #ff7900 1px;overflow:hiddem;float:left;height:500px;zoom:0.8;padding:5px;}.listLayout-side{width:20%;margin:5px} }')
  addGlobalStyle('.vote-temp {font-size:.75rem !important; }');
  addGlobalStyle('.thread-title--list {font-size:.75rem!important;line-height:1.2rem !important}');
  addGlobalStyle('div.threadGrid-title + div {margin-top:0px !important;}')
  addGlobalStyle('.cept-description-container{overflow:auto;text-overflow: ellipsis;}')
  addGlobalStyle('.footerMeta-infoSlot {position:relative !important;}');
  addGlobalStyle('.listLayout{max-width:100%;}')
  addGlobalStyle('.hide--toW3{font-size:.75rem}')
  addGlobalStyle('.threadGrid-headerMeta {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:1 !important}')
  addGlobalStyle('.threadGrid-title {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:3 !important}')
  addGlobalStyle('.threadGrid-body {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:4 !important;overflow:auto;}')
  addGlobalStyle('.threadGrid-footerMeta {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:5 !important}')
  addGlobalStyle('.threadGrid-image {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:2 !important;max-height:100%;}')
  addGlobalStyle('.thread-listImgCell,img.thread-image{max-height:100%;max-width:100%;object-fit:cover;margin:0 auto;}')
  addGlobalStyle('.imgFrame{height:200px;padding-top:0px;}')
  addGlobalStyle('.threadGrid{grid-template-columns:100% auto;grid-template-rows:auto auto auto 1fr auto;height:100%;padding:0}');
  addGlobalStyle('article.cept-thread-item + div {display:none;}')
  addGlobalStyle('.footerMeta-infoSlot{width:50%;text-overflow:ellipsis;overflow:hidden;}')
  addGlobalStyle('.footerMeta-actionSlot{width:50%;display:flex;flex-wrap:nowrap;justify-content:end}');
  addGlobalStyle('.threadGrid-footerMeta .footerMeta{justify-content:space-between;flex-wrap:wrap;}')
  addGlobalStyle('.threadGrid-footerMeta .user{overflow:visible}');
  addGlobalStyle('.footerMeta .cept-comment-link {padding-left:.3rem !important;padding-right:.3rem !important}');
  addGlobalStyle('.footerMeta span:nth-child(3){width:100%;padding-left:0px !important;padding-top:.3rem !important;}');

})();

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);
}