Bleue Test Room

... just to see a board with style-switcher

CHAT CHAT SEARCH SEARCH

 

 .RETURN TO INDEX.  

Mozilla Bookmarklets

July 18 2004 at 1:38 AM
Phil  (Login mrpip)

 

Because of firefox 0.9.1 I have now switched over to Firefox full time and looking at bookmarklets (very handy) and have 2 for increasing the colums and widths of textareas on all pages witch I found great (index, forum edit pages)

Create 2 new bookmarks and copy the code in to each bookmark
Code:
Textarea Width Increase
javascript:(function(){var i,x; for(i=0;x=document.getElementsByTagName('textarea')[i];++i) x.rows += 5; })()

Textarea Height Increase
javascript:(function(){var i,x; for(i=0;x=document.getElementsByTagName('textarea')[i];++i) x.cols += 5; })()


Each time you click on ether bookmark will keep increasing the width or height by 5

I annoyance is that it won't work on Textareas that have its style width and or height set

Looking at the code it may work with IE too but when I can't be bothered to run IE, 1 of these days I will check it out

Nw54 Scripts

 
 Respond to this message   
Responses

  1. IE, It works - Phil on Jul 18, 2:05 AM
  2.  
  3. Re: Mozilla Bookmarklets - Ed Home on Jul 18, 3:16 PM
    1. Re: Mozilla Bookmarklets - Phil on Jul 18, 11:49 PM
     
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement