スクリプト書くときに便利かもなBookmarklet
スキンまだ半分くらいしかできてねぇorz
ということで、今日も急場しのぎでBookmarkletなどを晒す。
Bookmarklet紹介
スクリプトやBookmarkletとか作るときに個人的に使うやつです。
それぞれUserAgentとかhostnameとかpathnameとかプロンプトに出力するだけという(-_-;)
- UserAgentを表示
javascript:(function(){prompt("This%20browser%20UserAgent",navigator.userAgent);void(0);})();
- リファラを表示
javascript:(function(){prompt("Referrer",document.referrer);void(0);})();
- Hostnameを表示
javascript:(function(){prompt("Hostname",location.hostname);void(0);})();
- Pathnameを表示
javascript:(function(){prompt("Pathname",location.pathname);void(0);})();
javascript:(function(){var%20word=prompt("Type%20the%20word%20encoding","");word=(word.length==0)?location.href:word;prompt("Encode%20result",encodeURIComponent(word));void(0);})();
- 入力語句をデコード*2
javascript:(function(){var%20word=prompt("Type%20the%20word%20decoding","");word=(word.length==0)?location.href:word;prompt("Decode%20result",decodeURIComponent(word));void(0);})();
javascript:(function(){prompt("Javascript%20Closure%20Templete","javascript:\(function\(\)\{\}\)\(\);");void(0);})();