Writing Room 4 Google Documents

By Michael Sacchi Last update Mar 22, 2008 — Installed 2,542 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 11 posts, 7 voices



Jesse Andrews Admin

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

 
Michael Sacchi Script's Author

Google implemented this feature yesterday.
My script is no longer needed (but this proves it was helpful and needed :) )

 
Nimit Maru Scriptwright

Hey Michael, I was just about to write this myself and then found yours. Wonderful, thanks! I would like to suggest a few changes that should help to gain one more line on the top:

var link;
link=document.createElement("div");
link.innerHTML = "<a style=\"font:bold 10px arial,sans-serif; margin: 2px;padding: 1px; position: absolute; top: 0; left: 120px;\" href='javascript:void(0);' onClick=\"if(document.getElementById('navigation').style.display == 'none'){ document.getElementById('navigation').style.display=''; this.innerHTML='Hide header'; this.style.left='120px';} else {this.innerHTML='Show header'; this.style.left='10px'; document.getElementById('navigation').style.display = 'none';} return false;\"> Hide header </a>";
document.body.insertBefore(link, parent.document.getElementById('editPage').firstChild);

Thanks again!

 
WeyrleaderZor User

Thanks for sharing this script with us. It is a great little tool to "steal" some screen space back so we can just work and not have the "over head" of wasted space to look at. Very handy and very little and inconspicuous. Great job!

 
Michael Sacchi Script's Author

I fixed the "include" url scheme.
Now it works with documents opened from a GMail attachment.

 
Michael Sacchi Script's Author

Apparently google changed the URL scheme.
I'll update the script as soon as I find time (hopefully later today)

 
behemothing User

and i installed it while procrastinating! hooray!

 
majkia User

oh what a great script! thanks!

 
Michael Sacchi Script's Author

Thanks a lot Brian! Looks really nice, I'll update the script with this new version and modify the description as soon as I find a minute to do so :)
Thanks again, I'm glad you found it useful.

 
Brian Jepson User

Looks like my attempt at pasting in some code failed. This link should work: http://jepstone.net/downloads/writingroom2.txt

 
Brian Jepson User

This is great-just what I needed! If you modify the code to also hide bottom_chrome, you can get rid of the line at the bottom that reads Check Spelling and get another line or to.

var link;
link=document.createElement("div");
link.innerHTML="

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