MSDN fuller screen

By Tim Partridge Last update Jul 4, 2008 — Installed 190 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Pash User

I like this variant


var msdn_clear = function(e)
{
var elements = document.evaluate("//div[@class='ThinNavBox'] | //div[@class='NavigationBox'] | //div[@class='LocalNavigation'] | //div[@class='Clear']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < elements.snapshotLength; i++) {
var el = elements.snapshotItem(i);
el.style.display = "none";
}
document.getElementById("contents").style.top = "50px";
}
window.addEventListener("load", msdn_clear , false);
window.addEventListener("unload", function(e) { msdn_clear = null; }, false);

 
mallard User

Modified the script to actually work.

Add the lines:

  document.getElementById("rheader").style.height="60px";
  document.getElementById("ctl00_rs1_ra1").style.top="-100px";

before the }, false); line at the end of the script.

 
Tim Partridge Script's Author

This version does not yet work as intended. It removes the undesirable top navigation, but the page content does not yet expand properly. If anyone has suggestions, please let me know. My JavaScript knowledge is minimal.

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