toLowerCase() bookmarklet
I was reading an amazon review and unfortunatelly the person has posted in all uppercase. I tried to read but after a few lines I got bored, all uppercase text is harder to read, not to mention it is considered shouting on the web. So I thought "what if I had a button or something... to make this thing readable..."
I thought there must be a bookmarklet somewhere for such text transformation. A quick google search didn't reveal any useful result, so I wrote it myself. This is a bookmarklet to transform any selected text on a web page to lower case. It works in Firefox and IE (Windows) and probably other browsers. It's inspired (read heavily borrowed) from the great SquareFree bookmarklets. So here it goes:
p.s. I just now thought that I could've pasted the text into any even just a bit advanced text editor (MS Word, TextPad) and used the editor's built in functionality. But no... we, the Firefox users, are already so used to have a browser extensions of some sort for everything we need (or don't)
...
This entry was posted on Tuesday, June 14th, 2005 and is filed under JavaScript. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Get notification for future posts: follow me on Twitter or subscribe to my RSS feed

November 11th, 2006 at 8:40 am
Greetings Stoyan
From your comment about you tolowecase() bookmarklet…
“>p.s. I just now thought that I could’ve pasted the text into any even just a bit advanced text editor”
… it would be really useful if it could take text from the clipboard, convert it and put it back on the clipboard.
I’ve included the code from a similar bookmarklet that I saved a long time ago that does this in case you get ambitious. Unfortunately the code only works in IE, not FireFox that I always have open.
javascript:q=(document.frames.length?”:document.selection.createRange().text);for(i=0;i
June 18th, 2007 at 5:53 pm
I’ve been using the following two to convert the whole page to uppercase and lowercase:
uppercase: javascript:(function(){ var i,t,D=document;for(i=0;t=D.getElementsByTagName(’textarea’)[i];++i)t.value=t.value.toUpperCase(); var newSS,styles=’*{text-transform:uppercase}input,textarea{text-transform:none}’;if(D.createStyleSheet){D.createStyleSheet(”javascript:’”+styles+”‘”);}else{newSS=D.createElement(’link’);newSS.rel=’stylesheet’;newSS.href=’data:text/css,’+escape(styles);D.documentElement.childNodes[0].appendChild(newSS);}})()
lowercase: javascript:(function(){var i,t,D=document; for(i=0;t=D.getElementsByTagName(’textarea’)[i];++i)t.value=t.value.toLowerCase(); var newSS,styles=’*{text-transform:lowercase}input,textarea{text-transform:none}’;if(D.createStyleSheet){D.createStyleSheet(”javascript:’”+styles+”‘”);}else{newSS=D.createElement(’link’);newSS.rel=’stylesheet’;newSS.href=’data:text/css,’+escape(styles);D.documentElement.childNodes[0].appendChild(newSS);}})()
I’ve tested both of them on Opera, FF, and IE and they seem to work properly. By the way, there are plenty more of these bookmarklets at:
http://operawiki.info/BookMarklets