Gingerbread Man wrote:
- Click the Select All link below and copy the code to the clipboard.
Code: Select all
javascript:(function(){function t(f){a=d.createNodeIterator(d,1,f,false);while(a.nextNode()){}}var d=document;t(function(e){x=e.offsetLeft;l=e.offsetParent;while(l!=null){x+=l.offsetLeft;l=l.offsetParent}var w=d.documentElement.clientWidth-x;var s=e.style;if(s.marginLeft)w-=s.marginLeft;if(s.marginRight)w-=s.marginRight;if(s.paddingLeft)w-=s.paddingLeft;if(s.paddingRight)w-=s.paddingRight;if(s.borderSize)w-=s.borderSize;w-=d.defaultView.innerWidth-d.documentElement.offsetWidth;if(e.tagName=='IMG'){h=e.clientHeight*w/e.clientWidth;s.maxHeight=h}s.maxWidth=w+'px'})})();
- Open the Bookmarks menu and choose Show All Bookmarks or Organize Bookmarks, depending on your version of Firefox.
- On the left side, expand the All Bookmarks entry, then left-click Bookmarks Toolbar.
- On the right-side, click the Organize button and choose New Bookmark.
- Give the bookmark whatever name you want, e.g. Fit to Width. Paste the contents of the clipboard in the Location field. Click the Add button to finish.
- Left-click the newly created bookmark on the bookmarks toolbar to use it.
THis is an old thread, but I just found what I was looking for and so I must thank GingerBread Man for this button. Kisses!