Torn: Custom CSS

Block or change CSS on Torn

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Torn: Custom CSS
// @version      1.0
// @namespace    http://tampermonkey.net/
// @description  Block or change CSS on Torn
// @author       Untouchable [1360035]
// @match        https://www.torn.com/*
// ==/UserScript==

GM_addStyle ( `

/* Hide Non-Related Forum */
#forums > div:nth-child(7) {
  display:none;
}

/* ================================= */

/* Torn Tools Color Overwrite */
.tt-title.title-black {
	color:white !important
}

/* Torn Tools Profile Info */
#tt-target-info {
  display:none;
}

/* ================================= */

/* Trade Chat Minimizer */
#chatRoot > div > div.chat-box_Wjbn9.trade_3ZOI5.chat-active_1Sufk > div.chat-box-content_2C5UJ > div.viewport_1F0WI > div > div.message_oP8oM {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-top: 3px;
}

/* ================================= */

/* Laptop Screen Enlarger */
.d .computer-frame-wrap>.viewport, .d .computer-frame-wrap { height:900px; }

/* ================================= */

/* Hide Property Info */
.property-info-cont {
 display:none;
}

/* ================================= */

/* Hide Happy Bar */
/*#barHappy {
 display:none;
}*/

/* ================================= */

/* Hide Info Panes on Home Page */
#item640545, /* Personal Perks */
#item640543, /* Working Stats */
#item640548, /* Latest Messages */
#item640546 /* Job Information */ {
 display:none;
}

/* ================================= */

/* DocTorn Effective Stats Graph */
#item640538 > div.bottom-round > div > article.doctorn-widget.svelte-1jam6qd.doctorn-widget--animated.doctorn-widget--flat.doctorn-widget--fullbleed.doctorn-widget--toggleable  {
 display:none;
}

/* ================================= */

/* Property Image */
/* #item640542 > div.bottom-round > div > ul > li.image.default {
	display:none;
} */

/* ================================= */

/* Other */
.dkk-widget_green {
 background-color:#505050!important;
}

#6461020 {
 background-color: yellow!important;
}

#6461020 {
 display:none!important;
}

.stage, .popup-info {
    display:none
}

/* ================================= */

` );



function GM_addStyle (cssStr) {
    var D = document;
    var newNode = D.createElement ('style');
    newNode.textContent = cssStr;

    var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
    targ.appendChild (newNode);
}

//////////////////////////////////////////////////////////////////////////////////////////