NG Fix

Fix Newgrounds

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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