Pixiv 排行榜宽屏展示

Pixiv 排行榜页面图片列表加宽,图片紧凑展示

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name              Pixiv 排行榜宽屏展示
// @version           0.1.0
// @description       Pixiv 排行榜页面图片列表加宽,图片紧凑展示
// @author            asadahimeka
// @namespace         https://www.nanoka.top
// @license           MIT
// @match             https://www.pixiv.net/ranking.php*
// @source            https://github.com/asadahimeka/userscripts
// @supportURL        https://github.com/asadahimeka/userscripts/issues
// @run-at            document-start
// @grant             GM_addStyle
// ==/UserScript==

(function() {
  "use strict";
  GM_addStyle(`
#wrapper {
  width: 90%;
}
.layout-body {
  width: 100%;
}
.premium-impression,
._premium-lead-function-banner {
  display: none;
}
._layout-thumbnail ._thumbnail {
  width: 100%;
  max-height: unset !important;
}
.ranking-items.adjust .ranking-item {
  width: 270px;
}
.following2 .follow-button {
  position: relative;
  width: 40px;
}
.following2 .follow-button:before {
  content: '已关注';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  background: #eee;
  line-height: 26px;
}
  `);

})();