CtgoFX

Remove ads and white spaces from chatango

Stan na 25-10-2014. Zobacz najnowsza wersja.

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ć!)

// ==UserScript==
// @name      CtgoFX
// @namespace http://itsuki.ga/
// @author    Itsuki
// @version   251014-10
// @match     http://*.chatango.com*
// @grant     GM_addStyle
// @description Remove ads and white spaces from chatango
// ==/UserScript==

GM_addStyle("#ad, #ad_placeholder_td, #ad_wrapper, #buyers_ad, #bottom_table, \
	* body [name*='google_ads_frame1'], * body [name*='google_ads_frame2'], \
	#left_container [href*='ad'], .topad { \
		display: none !important; \
		visibility: hidden !important; \
	} \
	#flashcontent { \
		display: block !important; \
		position: absolute !important; \
		top: 0px; \
		left: 0px; \
		width: 100%; \
		height: 100%; \
	}");

function fixPage() {
	document.getElementsByTagName("col")[1].style.display = 'none';
	document.getElementsByTagName("colgroup")[0].style.display = 'none';
}

try { fixPage(); } catch(err) {}