justintv InSameWindow

By hashi Last update Jul 9, 2009 — Installed 1,172 times.

Background size problem

in
Subscribe to Background size problem 3 posts, 3 voices



Tomorrow User

The black background does not span over entire screen.Lower part is partially white.I know the solution actually but cant post it because its part of Jtv Cleaner script

 
freshvp Scriptwright

i dont mind if you post it.

try this...


main();

function removeMe(x)
{
var y = document.getElementById(x);
if (y != null)
y.parentNode.removeChild(y);
else
GM_log('justin: cannot remove ' + x);
}

function main()
{
var launch=window.document.body.getAttribute('justintvfixelaunch');
if (launch) { return; }
window.document.body.setAttribute('justintvfixelaunch','true');

removeMe('dvr');
removeMe('header');
removeMe('channel_stats_container');
removeMe('show_survey');
removeMe('next_live_channel');
removeMe('chat');
removeMe('right_column');
removeMe('channel_lists');
removeMe('footer');
removeMe('channel_header');
removeMe('channel_tabs_container');
removeMe('PopUnderChan_holder');
removeMe('ChanHeader');
removeMe('ChanUnderChat');
removeMe('PopUnderChan');
removeMe('companion_ad');
removeMe('ChanHeader_holder');
removeMe('subplayer_buttons');

var jtv_live_flash = document.getElementById('live_site_player_flash');
if (jtv_live_flash != null)
{
jtv_live_flash.setAttribute("width", 950);
jtv_live_flash.setAttribute("height", 535);
}
setStyle(window.document,document.evaluate('/HTML[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,"color: black;background-color: black;",null,null);
setStyle(window.document,document.getElementById('page_wrapper'),"color: black;background: #000000;",null,null);
setStyle(window.document,document.getElementById('body_wrapper'),"color: black;background: #000000;",null,null);
setStyle(window.document,document.getElementById('left_column'),"color: black;background: #000000;width: 950px;",null,null);
setStyle(window.document,document.evaluate('/HTML[1]/BODY[1]/DIV[4]/DIV[7]/DIV[1]/DIV[1]/P[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,"color: white;",null,null);
}

function setStyle(doc, element, new_style) {
element.setAttribute('style', new_style);
};

 
hashi Script's Author

thanks, freshvp. changes committed

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel