ブックマークレットはその場ですぐにスクリプトを起動でき、拡張機能のように常駐しません。
もし似たような拡張機能を入れているようなら、ブックマークレットに切り替えましょう。
翻訳/辞書/検索 ブックマークレット
カーソルで選択しているキーワードを検索します。選択していなければダイアログが表示されてキーワード入力を促します。
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt("%E6%A4%9C%E7%B4%A2%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA%E3%82%92%E5%85%A5%E5%8A%9B%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84:","");if(t)open('http://translate.google.com/translate_t?hl=ja&sl=en&tl=ja&q='+encodeURIComponent(t)+'','_blank');})()
javascript:(function(){open('http://translate.google.com/translate?hl=ja&u='+escape(document.location.href),'_blank')})();
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt("%E6%A4%9C%E7%B4%A2%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA%E3%82%92%E5%85%A5%E5%8A%9B%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84:","");if(t)open('http://dic.yahoo.co.jp/dsearch?enc=UTF-8&stype=0&dtype=2&p='+encodeURIComponent(t)+'','_blank');})()
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-%20keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt("Wikipedia%E6%A4%9C%E7%B4%A2","");if(t)open('http://ja.wikipedia.org/wiki/Search?search='+encodeURIComponent(t)+'','_blank');})()
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-%20keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt("%E4%BE%A1%E6%A0%BCcom%E6%A4%9C%E7%B4%A2","");if(t)open('http://search.kakaku.com/ksearch/search.aspx?search.x=0&search.y=0=&query='+encodeURIComponent(t)+'','_blank');})()
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt('amazon%E6%A4%9C%E7%B4%A2','');if(t)open('http://www.amazon.co.jp/exec/obidos/external-search/?keyword='+encodeURIComponent(t),'_blank');})()
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt('%e8%aa%bf%e6%9f%bb%e3%81%99%e3%82%8b%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89','');if(t)open('http://thesaurus.weblio.jp/content/'+encodeURIComponent(t),'_blank');})()
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt('%e8%aa%bf%e6%9f%bb%e3%81%99%e3%82%8b%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89','');if(t)open('http://ejje.weblio.jp/content/'+encodeURIComponent(t),'_blank');})()
サイトの調査(SEO)ブックマークレット
見ているサイトのURLをそのまま調査に投げます。
javascript:(function(){q=location.href;if(q)window.open('http://seocheki.net/site-check.php?u='+encodeURIComponent(q));eval();})();
javascript:(function(l){q=l.href;if(q)window.open('http://hanasakigani.jp/blurl/?q='+encodeURIComponent(q),'_blank');})(location);
javascript:(function(l){q=l.href;if(q)window.open('http://www.seotools.jp/005_linkcheck/?url='+encodeURIComponent(q),'_blank');})(location);
javascript:(function(l){q=l.href;var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t)t=prompt('%e8%aa%bf%e6%9f%bb%e3%81%99%e3%82%8b%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89','');if(t&&q)open('http://www.seotools.jp/seoanalyze/?url='+encodeURIComponent(q)+'&kw='+encodeURIComponent(t),'_blank');})(location)
javascript:(function(l){q=l.href;if(q)window.open('https://developers.google.com/speed/pagespeed/insights/?hl=ja&url='+encodeURIComponent(q),'_blank');})(location);
javascript:(function(l){q=l.href;if(q)window.open('https://search.google.com/search-console/mobile-friendly?url='+encodeURIComponent(q),'_blank');})(location);
ページの調査 ブックマークレット
ソーシャルてんこ盛り
※見ているページが各ソーシャルネットワークでどれくらいシェアされているか。
javascript:(function(){alert(document.charset);})();
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt("%E6%A4%9C%E7%B4%A2%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA%E3%82%92%E5%85%A5%E5%8A%9B%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84:","");if (!t) return;t="("+t+")",x=new RegExp(t,"gi"),rid="z"+new Date,b=document.body.innerHTML,b=b.replace(x,"<span name="+rid+" style='color:#000;background-color:yellow;font-weight:bold;'>$1</span>"),void(document.body.innerHTML=b),window.scrollTo(0,document.getElementsByName(rid)[0].offsetTop);})()
※ページ内の該当するキーワードにマーカーが付きます。
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}open('http://www.google.co.jp/search?q=site:'+document.location.href.split('/')[2]+'%20'+encodeURIComponent(t),'_blank');})()
※選択しているキーワードをgoogleでsite:オプションを付けて検索します。
javascript:(function(){var%20i,x,f='%202px%20dotted';for(i=0;x=document.links[i];++i)x.style.outline=["red"+f,"blue"+f,"orange"+f][sim(x,location)];function%20sim(a,b){if(a.hostname!=b.hostname)return%200;if(fixPath(a.pathname)!=fixPath(b.pathname)||%20a.search!=b.search)%20return%201;return%202;}function%20fixPath(p){p=(p.charAt(0)=="/"?%20"":%20"/")+p;p=p.split("?")[0];return%20p;}})()
javascript:(function(l){q=l.href;if(q)window.open('https://www.aguse.jp/?url='+encodeURIComponent(q),'_blank');})(location);
javascript:(function(l){q=l.hostname;if(q)window.open('https://globalsign.ssllabs.com/analyze.html?d='+encodeURIComponent(q)+'&latest','_blank');})(location);
javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document.body.appendChild(scriptElem);}loadScript('http://westciv.com/xray/thexray.js');
javascript:(function(l){q=l.href;if(q)window.open('https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl='+encodeURIComponent(q),'_blank');})(location);
投稿/シェア/ストック ブックマークレット
javascript:(function(){window.twttr=window.twttr||{};var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());
javascript:(function(){var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1324237948&u='+e(l.href)+'&t='+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)})()
javascript:(function(){var%20w=600;var%20h=550;var%20x=Number((window.screen.width-w)/2);var%20y=Number((window.screen.height-h)/2);window.open('https://plus.google.com/share?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'','width='+w+',height='+h+',left='+x+',top='+y+',scrollbars=auto');})();
javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
javascript:(function(){var%20d=(new%20Date);var%20s=document.createElement('script');s.charset='UTF-8';s.src='http://b.hatena.ne.jp/js/Hatena/Bookmark/let.js?'+d.getFullYear()+d.getMonth()+d.getDate();(document.getElementsByTagName('head')[0]||document.body).appendChild(s);})();
javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();
javascript:(function(){window.open('https://readitlaterlist.com/save?url='+document.URL+'&title='+document.title);})();
javascript:void (function(e){var f=location.href;f=f.split("?")[0]||f;if(f.split("/")[4]!="items"){return;}(function d(){var m=e.getElementsByTagName("h1")[0].innerHTML; var b=e.body||e.getElementsByTagName("body")[0];var n=e.createElement("div");n.setAttribute("style","z-index: 9999;position: fixed;top: 0px;bottom: 0px;left: 0px;right: 0px;width: 50%;height: 50%;margin: auto;padding: 1%;border-radius: 5px;background: #666;"); var c=e.createElement("div");c.setAttribute("style","z-index: 9999;position: absolute;width: 5%;height: 100%;top: 0px;right: 0px;background: #f93;text-align: center;border-radius: 5px;font-size: 150%;cursor: pointer;"); c.onclick=function(){var g=this.parentNode;b.removeChild(g);};c.onmouseover=function(){this.style.backgroundColor="#fa6";this.style.color="#666";};c.onmouseout=function(){this.style.backgroundColor="#f93"; this.style.color="#000";};var k=e.createElement("p");k.setAttribute("style","position: absolute;top: 0px;bottom: 0px;left: 0px;right: 0px;height: 1em;width: 1em;margin: auto;padding: 0;font-weight: bold;user-select: none;"); k.innerHTML="%C3%97";c.appendChild(k);var a=e.createElement("textarea");a.setAttribute("style","width: 95%;height: 50%;padding: 1%;text-align: center;border-radius: 5px;border: none;resize: none;"); var l=a.cloneNode(true);a.innerHTML=m+"\r\n"+f;l.innerHTML="["+m+"]("+f+")";l.onfocus=a.onfocus=function(){this.select();};l.onkeydown=a.onkeydown=function(g){if(g.which==27){c.click(); }};n.appendChild(a);n.appendChild(l);n.appendChild(c);b.appendChild(n);}());}(document));
ページ加工 ブックマークレット
javascript:(function(t){t.contentEditable="inherit"===t.contentEditable||"false"===t.contentEditable})(document.body);
※その場でページのテキストが編集できるようになります。
javascript:void(u=document.location.href);void(window.location='http://www.makiapp.com/maki#'+u);
javascript:(function(l){q=l.href;if(q)window.open('https://snapito.com/screenshots/'+encodeURIComponent(l.hostname)+'.html?size=800x0&screen=1024x768&cache=2592000&delay=-1&url='+encodeURIComponent(q),'_blank');})(location);
javascript:(function(){wf_bookmarklet={ver:'1.5',ka:86400000,to:7000};if(typeof%20wfInit=='undefined'){var%20s=document.body.appendChild(document.createElement('script')).src=(document.location.protocol=='https:'?'https:':'http:')+'//www.wirify.com/client/wirify.min.js?'+parseInt(new%20Date().getTime()/wf_bookmarklet.ka);window.setTimeout(function(){if(typeof%20wfInit=='undefined'){alert('Wirify%20is%20still%20processing%20or%20temporarily%20unavailable,%20please%20try%20again%20in%20a%20moment\n\nVisit%20%20twitter.com/wirify%20%20and%20%20www.wirify.com/blog%20%20for%20latest%20announcements');}},wf_bookmarklet.to);}else{wfInit();}})();
その他お役立ちブックマークレット
javascript:(function(){var e=document.getElementsByTagName("input");for(i=0;i<e.length;i++)"password"==e[i].type&&e[i].removeAttribute("type")})();
※伏せ字になっているパスワード入力欄を普通のテキスト入力フォームに変えます。
javascript:(function(){var%20t=''+(window.getSelection%20?%20window.getSelection():%20document.getSelection%20?%20document.getSelection():%20document.selection.createRange().text);if(!t){L=document.location.href;if(L.match(/(yahoo%5C.).+?.*p=([^&]+)/)||L.match(/(amazon%5C.).+?.*field-keywords=([^&]+)/)||L.match(/(%5C.wikipedia%5C.).+%5C/wiki%5C/([^%5C/]+)/)||L.match(/(youtube%5C.).+search_query=([^&]+)/)||L.match(/(%5C?.*%5Cb)q=([^&]+)/)||L.match(/(%5C#search%5C/)([^%5C/]+)/))t=decodeURIComponent(RegExp.$2);}if(!t)t=prompt('%e8%aa%bf%e6%9f%bb%e3%81%99%e3%82%8b%e3%82%ad%e3%83%bc%e3%83%af%e3%83%bc%e3%83%89','');if(t)open('http://www.gskw.net/result?registflg=1&keyword='+encodeURIComponent(t),'_blank');})()
javascript:(function(){var b=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!b){L=document.location.href;if(L.match(/(yahoo\.).+?.*p=([^&]+)/)||L.match(/(amazon\.).+?.*field-keywords=([^&]+)/)||L.match(/(\.wikipedia\.).+\/wiki\/([^\/]+)/)||L.match(/(youtube\.).+search_query=([^&]+)/)||L.match(/(\?.*\b)q=([^&]+)/)||L.match(/(\#search\/)([^\/]+)/)){b=decodeURIComponent(RegExp.$2)}}if(!b){var c=document.body.innerHTML;var a=new RegExp("[0-9]{2}\.[0-9]{3,},[0-9]{3}\.[0-9]{4,}|[^ \f\n\r\t\v]+[\u90FD\u9053\u5E9C\u770C\u5E02\u533A][^ \f\n\r\t\v]+[\u5E02\u533A\u753A\u6751][^ \f\n\r\t\v]*");b=c.match(a)}if(!b){a=new RegExp("[\u3012\u3020\u3036]s*[0-9]{3}[-\u2015\u2010\u2212\u2500][0-9]{4}");b=c.match(a)}if(b){open("http://maps.google.com/maps?q="+encodeURIComponent(b),"_blank")}else{alert("%e5%9c%b0%e5%9b%b3%e6%83%85%e5%a0%b1%e3%81%af%e8%a6%8b%e3%81%a4%e3%81%8b%e3%82%8a%e3%81%be%e3%81%9b%e3%82%93%e3%81%a7%e3%81%97%e3%81%9f")}})();
※住所や郵便番号が選択されていればその住所でGoogleマップを開きます。選択されていなければそれらしいテキストを探します。
参考サイト
よく使うブックマークレット集
Qiitaの記事タイトルとURLを楽にコピーするブックマークレットを改良してみた
ブックマークレットで jQuery を使う魔法の 210 文字
ブックマークレットを作るときのTips
頻繁に使用している便利なお役立ち系ブックマークレット・19個