NG Fix

Fix Newgrounds

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

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

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

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

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

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

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

Advertisement:

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

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

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

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

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

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

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

Advertisement:

//
// Written by Glenn Wiking
// Script Version: 1.0.2e
// Date of issue: 08/11/14
// Date of resolution: 06/12/14
//
// ==UserScript==
// @name        NG Fix
// @namespace   NG
// @description Fix Newgrounds
// @include        http://*.newgrounds.com/portal/view/*
// @include        https://*.newgrounds.com/portal/view/*

// @version        0.0.1
// ==/UserScript==

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

ShadeRootNG(
  '.thincol div:nth-of-type(1) {display: none;}'
  +
  '.thincol div:nth-of-type(2) {display: inline-block;}'
  +
  'div#votebar_pod {display: block;}'
  +
  '#megabanner {display: none !important;}'
  +
  '.cuck {opacity: 0;}'
  +
  '.podcontent {width: inherit;}'
  +
  '.authorlinks li ul li [title] {right: 52px;}'
  +
  '.authorlinks li ul li + li [title] {right: 27px;}'
  +
  'div a img[src="data:image/;base64,*"], .a[href="/supporter"] {display: none !important;}'
  +
  'div a img[style="height:768px"] {display: none !important;}'
  +
  'div a img[height="768px;"], div a img[height="90px;"] {display: none !important;}'
  +
  'div a img[max-width="none!important;"] {display: none !important;}'
  +
  '.gray > div > div > a > img {display: none !important;}'
);