-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (60 loc) · 5.41 KB
/
index.html
File metadata and controls
90 lines (60 loc) · 5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ブックマークレット - お髭処ソフト</title>
</head>
<body>
<h1>ブックマークレット - お髭処ソフト</h1>
<p>「ブックマークレット」とはブックマーク (お気に入り) を利用してウェブブラウザに
ちょっとした機能を追加するものです。</p>
<p>ここでは私ひげダイスが作成した、ちょっとしたオリジナルブックマークレットを
公開・配布しています。</p>
<p>ブックマークレットの登録・利用方法は、<a href="http://www.hatena.ne.jp/tool/bookmarklet#howto">はてなブックマークレットページの
ブックマークレットの登録・利用方法</a>
の説明が丁寧で詳しいので、そちらをご参照ください。</p>
<p>iPhone では少し特殊です。<a href="http://it-pocket.com/iphone-ipad-safari-bookmarklet">iPhone・iPadのSafariが驚くほど便利になる!私が愛用しているブックマークレットまとめ | Mac・iPhone・iPad - ITポケット</a> の方法をご参照ください。</p>
<h2>ブロガー・Twitter ユーザー向けブックマークレット</h2>
<h3>現在のページへのリンク作成</h3>
<p>ウェブブラウザで現在表示中のウェブページのリンクを効率的にコピーするための
ブックマークレットです。</p>
<p>プロンプト版は、「OK」を押すまで異なるスタイルで「タイトル」と URL・URI を
表示します。
一覧版は、同じものを新規ウィンドウ(タブ)に一覧表示します。
目的のスタイルが表示されたら「コピー」して、ブログ原稿などに貼りつけると
少ない労力でコンテンツを作成できます。</p>
<p>通常 Safari では URL エンコードされた URL をアドレス欄よりコピーしようとすると
デコード後のものがコピーされてしまいます。(例えば Wikipedia の日本語の項目)
これを使用すると、もとの(いわゆる)半角文字だけの URL がコピーできます。</p>
<h4>プロンプト版</h4>
<p>☆ <a href="javascript:(function(f,b){var%20e="%20",a=window.prompt,d=function(g,h,i){return%20a(g,'<a%20href="'+h+'"'+(i?e+'target="'+i+'"':"")+">"+f+"</a>")},c;c=a("Text",f+e+b);if(!c){c=d("HTML",b)}if(!c){c=d("HTML%20_blank",b,"_blank")}if(!c){c=d("HTML%20_top",b,"_top")}})(window.document.title,window.document.URL);">Link to Here</a></p>
<p>iPhone 用ソースコード
<code>
javascript:(function(f,b){var%20e="%20",a=window.prompt,d=function(g,h,i){return%20a(g,'<a%20href="'+h+'"'+(i?e+'target="'+i+'"':"")+">"+f+"</a>")},c;c=a("Text",f+e+b);if(!c){c=d("HTML",b)}if(!c){c=d("HTML%20_blank",b,"_blank")}if(!c){c=d("HTML%20_top",b,"_top")}})(window.document.title,window.document.URL);
</code></p>
<h4>一覧版</h4>
<p>☆ <a href="javascript:(function(f,d){var%20c="&lt;",e="&gt;",a=window.open().document,b=function(g,h){var%20i="<li>"+c+'a%20href="'+g+'"'+(h?'%20target="'+h+'"':"")+e+f+c+"/a"+e+"</li>";return%20i};a.writeln("<html><head><title>Links</title></head><body>");a.writeln("<ul>");a.writeln("<li>"+f+"%20"+d+"</li>");a.writeln(b(d));a.writeln(b(d,"_blank"));a.writeln(b(d,"_top"));a.writeln("</ul>");a.writeln("</body></html>")})(window.document.title,window.document.URL);">Links to Here</a></p>
<p>iPhone 用ソースコード
<code>
javascript:(function(f,d){var%20c="&amp;lt;",e="&amp;gt;",a=window.open().document,b=function(g,h){var%20i="<li>"+c+'a%20href="'+g+'"'+(h?'%20target="'+h+'"':"")+e+f+c+"/a"+e+"</li>";return%20i};a.writeln("<html><head><title>Links</title></head><body>");a.writeln("<ul>");a.writeln("<li>"+f+"%20"+d+"</li>");a.writeln(b(d));a.writeln(b(d,"_blank"));a.writeln(b(d,"_top"));a.writeln("</ul>");a.writeln("</body></html>")})(window.document.title,window.document.URL);
</code></p>
<h2>ライセンス</h2>
<p><a href="README.md">README.md</a> ファイルをご参照ください。</p>
=======
<h2>プロジェクトページ</h2>
<p><a href="https://github.com/higedice/bookmarklets">https://github.com/higedice/bookmarklets</a>
<hr />
<p>by Higedice (ひげダイス) 2012
<a href="http://d.hatena.ne.jp/higedice/">http://d.hatena.ne.jp/higedice/</a>
<a href="http://twitter.com/higedice">http://twitter.com/higedice</a></p>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4906181-11']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>