Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Read documentation without the pseudo-frames (i.e. in 'full-screen' mode) on http://developer.android.com
// Bookmarklet code - copy and paste the bookmarklet code as a bookmark URL:
/*========= START BOOKMARKLET CODE ===============*/
javascript:(function(){var d=window.document;h=d.getElementById('header');h&&(h.style.display='none');sn=d.getElementById('side-nav');sn&&(sn.style.display='none');qv=d.getElementById('qv-wrapper');qv&&(qv.style.display='none');dc=d.getElementById('doc-col');dc&&(dc.style.width='100%');dd=d.getElementById('devdoc-nav');dd&&(dd.parentNode.removeChild(dd));dc=d.getElementById('doc-content');dc&&(s=dc.style&&s.overflow='visible'&&s.width='95%'&&s.height='100%'&&s.margin='10px');d.body&&d.body.style&&(d.body.style.overflow='visible');d.body.parentNode&&d.body.parentNode.style&&(d.body.parentNode.style.overflow='visible');})()
/*========== END BOOKMARKLET CODE ================*/
/**
Usage:
1. Create bookmark with the code above as the URL.
2. While browsing a page at http://developer.android.com/reference click the bookmark.
*/
//// Human-readable code, for reference only
/// Thanks to http://subsimple.com/bookmarklets/jsbuilder.htm for the format/minimize tool.
javascript:
(function(){
var d=window.document;
h=d.getElementById('header');
h&&(h.style.display='none');
sn=d.getElementById('side-nav');
sn&&(sn.style.display='none');
qv=d.getElementById('qv-wrapper');
qv&&(qv.style.display='none');
dc=d.getElementById('doc-col');
dc&&(dc.style.width='100%');
dd=d.getElementById('devdoc-nav');
dd&&(dd.parentNode.removeChild(dd));
dc=d.getElementById('doc-content');
dc&&(s=dc.style&&s.overflow='visible'&&s.width='95%'&&s.height='100%'&&s.margin='10px');
d.body&&d.body.style&&(d.body.style.overflow='visible');
d.body.parentNode&&d.body.parentNode.style&&(d.body.parentNode.style.overflow='visible');
}
)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment