Greasy Fork

Greasy Fork is available in English.

BGG Preview Upgrade

improves the BGG Previews, particularly for printing

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         BGG Preview Upgrade
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  improves the BGG Previews, particularly for printing
// @author       You
// @match        https://www.boardgamegeek.com/geekpreview/51/spiel-21-preview?*
// @icon         https://www.google.com/s2/favicons?domain=boardgamegeek.com
// @grant        none
// ==/UserScript==

var css = `
@media print
{
  geekpreview-header, .geekpreview-toolbar-primary, .global-header, .geekpreview-sticky-menu, .geekpreview-toolbar-secondary-views, #global-header-outer, .pace
  {
    display: none;
  }

  /* link to publisher */
  .geekpreview-parent-social
  {
    display: none;
  }
  /* publisher header */
  .geekpreview-parent-info > h2
  {
    display: inline;
  }

  .global-body-content-primary
  {
    padding-left: 0;
    padding-right: 0;
  }
  .global-body-content-container
  {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* "Show more" button in item */
  .geekpreview-item-inner-info-body > button
  {
    display: none;
  }
  /* "Edit/Add" in collection button */
  .geekpreview-item-inner-info-header-save
  {
    display: none;
  }
  /* Thumbs button / stats */
  .geekpreview-item-community-actions
  {
    display: none;
  }
}
  /* stats like player count */
  dl.geekpreview-item-inline-summary > div
  {
    padding: 1px 3px 1px 2px;
    min-width: auto;
  }

`;

(function() {
    'use strict';

    // Your code here...

    var style = document.createElement('style');
    style.innerHTML = css;
    document.getElementsByTagName('head')[0].appendChild(style);
})();