NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Disable xat chat or profile CSS // @namespace disable-xat-chat-or-profile-css // @description This extension allows you to disable user added CSS on any xat chat or xat.me profile by adding ?nocss at the end of the URL. // @include http://xat.com/*?nocss // @include http://xat.me/*?nocss // @version 1.0.4 // @grant none // ==/UserScript== window.onload = function() { if (window.location.host=="xat.com") { document.getElementsByTagName('STYLE')[0].innerHTML = "body,td,th { font-family: Helvetica, Arial, sans-serif; color: #FFFFFF; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } body {background-color: #000000;} P {font-size: 0.8em;} A:link {text-decoration: none; color:#FFFFFF} A:visited {text-decoration: none; color:#FFFFFF} A:hover {text-decoration: underline; color:#FFFFFF} A:active {text-decoration: none; color:#FFFFFF} .foot {font-size: 0.9em;} .vbmenu_control { color: #FFFFFF; font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; padding: 0px 0px 0px 0px; white-space: nowrap; border-top: none; border-bottom: 1px solid #a3a3a3; } .vbmenu_control_o { border-top: none; border-bottom: 1px solid #a3a3a3; } .vbmenu_control_t { background: transparent url(/images/menuback.gif) center center repeat-x; border-bottom: 1px solid #a3a3a3; border-top: 1px solid #a3a3a3; } .vbmenu_control_os { border-top: none; border-bottom: 1px solid #000000; } .vbmenu_control_ts { background: transparent url(/images/menuback.gif) center center repeat-x; border-bottom: 1px solid #000000; border-top: 1px solid #a3a3a3; } H2 { padding: 0; line-height: 14px; margin: 0; font-size: 14px; text-align: left; vertical-align: middle; margin-bottom: 4px; margin-top: -1px; } H1 { padding: 0; line-height: 51px; margin: 0; text-align: left; vertical-align: bottom; font-size: 40px; margin-bottom: -2px; font-weight: bold; } .btext { text-align: center; font-size: 10px; } .btext2 { text-align: left; font-size: 10px; }"; } else { document.getElementsByTagName('style')[0].innerHTML = "body {background-color: #EEEEEE;}"; } };