Recent posts by LenR

Subscribe to Recent posts by LenR 3 posts found

Mar 22, 2008
LenR 3 posts

Topic: Ideas and script requests / remove html-based download delays

might already exist but I can't find it.
a script to get rid of the:
<meta />
type delays (many, many sites) would be great. anyone? should be cake.

 
Jan 6, 2008
LenR 3 posts

Topic: Script development / resizing ebay countdown

Really stumped here, tried a few different ways:

var newCD =
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', +
'width','380', +
'height','504', +
'id','countdown', +
'align','middle', +
'src','countdown', +
'quality','high', +
'bgcolor','#ffffff', +
'name','countdown', +
'allowscriptaccess','sameDomain', +
'pluginspage','http://www.macromedia.com/go/getflashplayer', +
'movie','countdown', +
'flashvars', 'hostname=countdown.ebay.com&port=5190');

document.getElementByID('countdown')=newCD;

~~~~~~~~~~~~~~~~~
//newCD the same, but last line replace with:
oldCD = document.getElementByID('countdown');
oldCd.parentNode.replaceChild(newCD,oldCD);

~~~~~~~~~~~~~~~~~
//or this way:
window.addEventListener(
'load',
function() { document.body.countdown = newCD; },
true);

~~~~~~~~~~~~~~~~~
//a variety of tries here. it worked ___ONCE___ for one of them (I forget which) but on reload it stopped working, and I forgot which was the good one:
var countdownSwf = document.getElementById('countdown');
//var countdownSwf = getSWF("countdown");
if (!countdownSwf){alert("Failed to capture SWF!"); return;}

countdownSwf.width=380;
countdownSwf.height=504;
countdownSwf.align='left';
//alert(countdownSwf.align);

//setAttribute(countdownSwf, 'width', 380);
//setAttribute(countdownSwf, 'height', 504);
//setAttribute(countdownSwf, 'align', 380);

//countdownSwf.SetVariable("width", "380");
//countdownSwf.SetVariable("height", "504");
//countdownSwf.SetVariable("align", "left");

//alert(countdownSwf.width);

 
Jan 6, 2008
LenR 3 posts

Topic: Script development / having trouble modifying sidebar documents

I wrote a little script where I'm trying to modify a google group rss feed to view in sidebar, but it isn't working - it can alter the main page, but does nothing when its in the sidebar (i've commented out the first line for testing):

//if (document.getElementByID('sidebar').contentDocument.location == 'http://groups.google.com/group/Google-Gadgets-API/feed/rss_v2_0_msgs.xml?num=20'){
var fhcont = document.getElementById('feedHeaderContainer');
if (fhcont) {
fhcont.parentNode.removeChild(fhcont);
}
//}

optimally, i'd like to be able to remove the box its in and just view the white area stuff; i'd also like to set it so clicking on a link opens it in the main page. Any ideas?