bookmarklet

Quick Firefox Tip: Word Count Bookmarklet

Digg Linux/Unix upcoming  Wed, 11/05/2008 - 13:34

Authors need to count the words in articles. But when it's an HTML document all full of tags, you don't want to count the tags.

Akkana Peck shows a fast way to count only the words.


 

Reformat standard web pages for better iPhone display

MacOSXHints.com  Thu, 07/24/2008 - 09:30

Mobile Safari on the iPhone does an amazing job displaying web pages. However, I find that in the context of viewing some web pages on the go, that this view isn't necessarily the best way to read some pages.

For example, even though the iPhone interface is awesome, I don't really want to waste time zooming and messing with a page to read the actual content.

I'd rather just load up a page, read my content, and move on.


 

Use Script Editor to develop bookmarklets

MacOSXHints.com  Thu, 05/08/2008 - 09:30

If you're developing a non-trivial bookmarklet you may be able to speed up your edit cycle by having an applescript which executes the javascript in your browser, like this:tell application "Safari" activate do JavaScript " // Of course your bookmarklet code goes here, for example... alert('hello world'); " in front documentend tellI just edited the Javascript in Script Editor and hit the run button to test.

Just be careful of using double quotes, and you can postpone escaping the script and adding it to your bookmarks until the very end.