pepper.pl,mydealz.de,hotukdeals.com kafelki

przywraca stary widok dla peppera + mydealz.de + hotukdeals.com. Wszystkie serwisy pracują na tym samym systemie, więc dodanie obsługi nie było skomplikowane.

// ==UserScript==
// @name         pepper.pl,mydealz.de,hotukdeals.com kafelki
// @namespace    http://pepper.pl/
// @version      0.25
// @description  przywraca stary widok dla peppera + mydealz.de + hotukdeals.com. Wszystkie serwisy pracują na tym samym systemie, więc dodanie obsługi nie było skomplikowane.
// @author       me__
// @license MIT
// @match        https://www.pepper.pl/*
// @include      https://www.hotukdeals.com/*
// @exclude      https://www.hotukdeals.com/vouchers*
// @exclude      https://www.hotukdeals.com/discussions*
// @exclude      https://www.hotukdeals.com/profile*
// @exclude      https://www.hotukdeals.com/submission*
// @include      https://www.mydealz.de/*
// @exclude      https://www.mydealz.de/diskussion*
// @exclude      https://www.mydealz.de/gutscheine*
// @exclude      https://www.mydealz.de/profile*
// @exclude      https://www.mydealz.de/submission*
// @exclude      https://www.pepper.pl/dyskusji*
// @exclude      https://www.pepper.pl/grupa
// @exclude      https://www.pepper.pl/kupony*
// @exclude      https://www.pepper.pl/profile*
// @exclude      https://www.pepper.pl/submission*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
  addGlobalStyle(`@media (max-width: 1023px){article.thread,div.js-banner,a.cept-event-banner,.cept-widget-list,.discussionHorizontalWidget,section.thread,div[id^="customBannerList"],div[id^="eventBannerPortal"] {width:32.9%;margin:.2%;overflow:hidden;float:left;height:500px;zoom:0.8;padding:5px;}.listLayout-side{width:100%;margin:5px} }
  @media (min-width: 1024px){article.thread,div.js-banner,.cept-widget-list,a.cept-event-banner,section.thread,div[id^="customBannerList"],div[id^="eventBannerPortal"]  {width:24.3%;margin:0 .2% .4% .2%;overflow:hidden;float:left;height:500px;zoom:0.8;padding:5px;}.listLayout-side{width:24%;}.listLayout-main{width:80%;margin-top:.57143em} .listLayout-mainItem {margin-bottom:.57143em}}
  @media (min-width: 1600px){article.thread,div.js-banner,.cept-widget-list,a.cept-event-banner,section.thread,div[id^="customBannerList"],div[id^="eventBannerPortal"]  {width:19.5%;}.listLayout-side{width:20%;}.listLayout-main{width:80%;} .page2-center {max-width:100%}}
  @media (min-width: 2000px){article.thread,div.js-banner,.cept-widget-list,a.cept-event-banner,section.thread,div[id^="customBannerList"],div[id^="eventBannerPortal"]  {width:16%;}.listLayout-side{width:14.5%;} .listLayout-main{width:85.5%} }
  @media (min-width: 2400px){article.thread,div.js-banner,.cept-widget-list,a.cept-event-banner,section.thread,div[id^="customBannerList"],div[id^="eventBannerPortal"] {width:12%;}.listLayout-side{width:12.0%;} .listLayout-main{width:88.0%} }
  div[id^="eventBannerPortal"] .space--mt-2,  div[id^="eventBannerPortal"]{margin-top: 0px !important;padding:0px;}
  .thread-title--list {font-size:.9rem!important;line-height:1.2rem !important} .vote-temp {font-size:.9rem !important; } .hide--toW3{font-size:.9rem}');
  div.threadGrid-title + div {margin-top:0px !important;}
  .cept-description-container{overflow:auto;text-overflow: ellipsis;}
  .footerMeta-infoSlot {position:relative !important;}
  .listLayout{max-width:100%;}
  .threadGrid-headerMeta,.threadListCard-header {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:1 !important}
  .threadListCard-header,.threadListCard-footer{padding:0px; background-color: var(--bgBaseSecondary);}
  .threadListCard-body > div > span > span >span.overflow--ellipsis {font-size:0px}
  .threadListCard-body > div > span > span >span.overflow--ellipsis a,.threadListCard-body > div > span > span >span.overflow--ellipsis span{font-size:.875rem;line-height:1.5rem;}
  .threadListCard-body > div > span > span.thread-divider.hide--toW3.space--mh-0 {display:none;}
  .threadListCard-body > div > span > span >span.overflow--ellipsis a::before,.threadListCard-body > div > span > span >span.overflow--ellipsis span::before{display:inline-block;width: 16px; height: 16px; content:"🛒";}
  .threadGrid-title,.thread-title  {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:3 !important}
  .threadGrid-body,.threadListCard-body {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:4 !important;overflow:hidden;align-self:start;margin-top:0px;} .threadGrid-body:hover {overflow:auto;}
  .threadGrid-footerMeta,.threadListCard-footer {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:5 !important}
  .threadGrid-image,.threadListCard-image {grid-column-start:1 !important;grid-column-end:1 !important;grid-row:2 !important;max-height:100%;}
  .thread-listImgCell,img.thread-image{max-height:100%;max-width:100%;object-fit:cover;margin:0 auto;}
  .threadListCard::before{background:transparent;}
  .chip--type-default{background:var(--bgBaseSecondary)}
  .imgFrame:not(.bg--main){height:200px;padding-top:0px;}
  .threadGrid,.threadListCard{grid-template-columns:100% auto;grid-template-rows:auto auto auto 1fr auto;height:100%;padding:0}
  article.cept-thread-item + div {display:none;}
  .footerMeta-infoSlot{width:50%;text-overflow:ellipsis;overflow:hidden;}
  .footerMeta-actionSlot{width:50%;display:flex;flex-wrap:nowrap;justify-content:end}
  .threadGrid-footerMeta .footerMeta{justify-content:space-between;flex-wrap:wrap;}
  .threadGrid-footerMeta .user{overflow:visible}
  .footerMeta .cept-comment-link {padding-left:.3rem !important;padding-right:.3rem !important}
  .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);
}
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联