「Bookmarklet」の版間の差分
ナビゲーションに移動
検索に移動
| 1行目: | 1行目: | ||
| − | ==Bookmarklet== | + | ==[[Bookmarklet]]== |
===ツール=== | ===ツール=== | ||
=====英和辞典===== | =====英和辞典===== | ||
| − | javascript:window.location.href='http://www2.alc.co.jp/ejr/index.php?word_in=' + | + | javascript:window.location.href='http://www2.alc.co.jp/ejr/index.php?word_in=' + encodeU[[R]]IComponent(prompt('input word',''))+ '&word_in2=reedeirrf&word_in3=zJPa7DCxJ15687987t'; |
===閲覧=== | ===閲覧=== | ||
| 16行目: | 16行目: | ||
javascript:p();function p(){var e=document.getElementsByTagName('input');var s='';for(var i=0;i<e.length;i++){s+=e[i].name+'='+e[i].value+'\n';}alert(s);} | javascript:p();function p(){var e=document.getElementsByTagName('input');var s='';for(var i=0;i<e.length;i++){s+=e[i].name+'='+e[i].value+'\n';}alert(s);} | ||
| − | ===== | + | =====ページの[[リンク]]を表示===== |
javascript:var w=window.open('_blank'); w.document.write('<html><head></head><body>'); var links = document.getElementsByTagName('a'); var link; for (var i=0; i<links.length; i++) { link=links[i].getAttribute('href'); w.document.write('<a href=\"' + link + '\">' + link + '</a><br>'); } w.document.write('</body></html>');w.document.close(); | javascript:var w=window.open('_blank'); w.document.write('<html><head></head><body>'); var links = document.getElementsByTagName('a'); var link; for (var i=0; i<links.length; i++) { link=links[i].getAttribute('href'); w.document.write('<a href=\"' + link + '\">' + link + '</a><br>'); } w.document.write('</body></html>');w.document.close(); | ||
| − | ===== | + | =====[[Cookie]]の表示===== |
javascript:c=document.cookie;w=open('_blank');cs=c.split(";");for(i=0;i<5;i++){w.document.write(cs[i]+";<br><br>");}w.document.close(); | javascript:c=document.cookie;w=open('_blank');cs=c.split(";");for(i=0;i<5;i++){w.document.write(cs[i]+";<br><br>");}w.document.close(); | ||
---- | ---- | ||
| − | {{include_html banner_html, "!Javascript"}} | + | {{include_html [[banner_html]], "!Javascript"}} |
2020年2月16日 (日) 04:22時点における最新版
目次
Bookmarklet
ツール
英和辞典
javascript:window.location.href='http://www2.alc.co.jp/ejr/index.php?word_in=' + encodeURIComponent(prompt('input word',))+ '&word_in2=reedeirrf&word_in3=zJPa7DCxJ15687987t';
閲覧
見やすい書式
- 背景イメージを消す
- 白地
- フォントsmall
javascript:document.body.style.background=;document.body.style.backgroundColor='white';document.body.style.fontSize='small';void(0);
Web開発
inputタグの中身を確認
javascript:p();function p(){var e=document.getElementsByTagName('input');var s=;for(var i=0;i<e.length;i++){s+=e[i].name+'='+e[i].value+'\n';}alert(s);}
ページのリンクを表示
javascript:var w=window.open('_blank'); w.document.write('<html><head></head><body>'); var links = document.getElementsByTagName('a'); var link; for (var i=0; i<links.length; i++) { link=links[i].getAttribute('href'); w.document.write('<a href=\"' + link + '\">' + link + '</a><br>'); } w.document.write('</body></html>');w.document.close();
Cookieの表示
javascript:c=document.cookie;w=open('_blank');cs=c.split(";");for(i=0;i<5;i++){w.document.write(cs[i]+";<br><br>");}w.document.close();
{{include_html banner_html, "!Javascript"}}
© 2006 矢木浩人