81994 Bookmarklets! Create
Hatena::Let でブックマークレットをかんたんに作成・公開しよう!
TL;DR: ` のすぐ内側に " or ' を入れる。内部でそれらを使う時はエスケープ。
{let LET_ID="foo";alert(`'<div class="${LET_ID}" onclick="alert('test')">\n </div>'`.slice(1,-1))}
起動すると現在のURLがデフォルトで入力状態のプロンプトが起動してOKでQRコード表示、URLを指定してQR...
(function(){var im,u;if(u=prompt('please input url!',location.href)){im=document.createElement('i...
これ自体は何もしないよ。
はてなのサービス内で連携しているTwitterアカウントにもHaiku!がツイートされます。(ヘルプにも載って...
(function(){var a=document.createElement('span');a.innerHTML='<label><input type=checkbox name="p...
remember GeoCities
(()=>{'use strict';const require=sources=>{const wall=document.head||document.body||document.docu...
autoload new tweets on twitter.com
(()=>{'use strict';const load=()=>{const expander=document.body.querySelector('.new-tweets-bar');...
easy copyable title/url box; click to copy, double-click outer to close
(()=>{'use strict';const canonical=(document.querySelector(['head meta[property="og:url"][content...
タイトルと URL をコピーするための TEXTAREA
(function(){const c_id="a-kuma3-"+Date.now();const remove_textarea=function(){this.parentNode.par...
Range.prototype.getClientRectsで表示範囲が取れることを利用したデモ
(function(){const MASK="range-visualizer-mask";const MASK_ELEM=`${MASK}-elem`;const MASK_NODE=`${...
出てきたやつをクリックするとクリップボードに入ります。外枠をダブルクリックすると消えます。
(()=>{const canonical=(document.querySelector('head meta[property="og:url"][content]')||{}).conte...
お好みの Content-Security-Policy を追加して、制限を厳しくしてみよう
(function(){let csp=doc.createElement("meta");csp.httpEquiv="Content-Security-Policy";csp.content...
ブックマークレット開発のお供に
onerror=alert;
Instagramの一覧表示時に画像の隙間を無くしてくっつける
javascript:(function(){var a=document.querySelectorAll("header+div div>a");for(i=0;i<a.length;i++...
最初の入力フォーム。内容自分で変えてから使えよ。PCサイトでのみ動作確認(Safari)。
javascript:(function(){document.getElementById("MAIL_ADDRS").value="hoge@hoge.com";document.getEl...
カード払い用。内容自分で変えてから使えよ。PCサイトでのみ動作確認(Safari)。
javascript:(function(){document.getElementById("DLV_PLACE_ZIP").value="12346";document.getElement...
javascript:(function(){document.getElementById("PWD").value="1234";document.getElementById("PWD_C...
見難くなったTwitter検索結果画面を見易くします。
(function(d,aC){var st=d.createElement('style');st.setAttribute('type','text/css');(d.head||d.get...
append self-fork icon on Hatena::Let
(()=>{'use strict';const edit=document.body.querySelector('a.edit-link[href*="/let.edit"]');if(!e...
はてなの通知欄に出る「××があなたのブックマーク(hoge...)に★をつけました」のジャンプ先から個別の...
javascript:(function(){if(location.href.match(/^https?:\/\/b\.hatena\.ne\.jp\/([^\/]+)\/\d{8}#boo...
profile.hatena.ne.jp に飛びます。
((a,i,p='parentNode',q='querySelector',m='match',h='pathname',l=location,u=(a||l.href)[m](/(\w+)\...