星期五, 2月 16, 2007

Bookmarklets 整理

整理出了一些個人認為還不錯用的bookmarklets。

安裝方式:將連結拖放至你的書籤列上。

以下的bookmarklets皆可在Mozilla Firefox上使用:

Force Wrap (強制換行)

Google Cache
(用google cache 檢視目前的頁面)

Text Color (變更頁面文字的顏色)

Page Color (變更頁面背景的顏色)

Coralize (連接大陸
網站過慢時,可以改用coralize)

Highlight Regexp (用正規表示式,反白頁面文字)

FormTextResizer (用滑鼠改變表單中的文字方框大小)


WBR tag test page(Force Wrap test page):http://www.quirksmode.org/oddsandends/wbr.html

來源引用自:
http://www.blogmarks.net/marks/tag/bookmarklet,web
http://userscripts.org/scripts/show/1847

星期四, 2月 15, 2007

Force Wrap - Bookmarklet

http://userscripts.org/scripts/show/1847

Intro:Use <wbr> tag to wrap the long words and refresh the inner html page after it was finished.

Force Wrap (Drag it to your Bookmarks/Favorites)

 
javascript:(function(){var D=document; F(D.body); function F(n){var u,r,c,x; if(n.nodeType==3){ u=n.data.search(/\S{45}/); if(u%3E=0) { r=n.splitText(u+45); n.parentNode.insertBefore(D.createElement(%22WBR%22),r); } }else if(n.tagName!=%22STYLE%22 && n.tagName!=%22SCRIPT%22){for (c=0;x=n.childNodes[c];++c){F(x);}} } })();document.body.innerHTML = document.body.innerHTML; void 0;


Here is the WBR tag test Page:
http://www.quirksmode.org/oddsandends/wbr.html