CINXE.COM
Hatena::Let
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="" lang=""> <head> <title>Hatena::Let</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.png" /> <link rel="stylesheet" href="https://www.hatena.ne.jp/css/simple-header.css" type="text/css" media="all" /> <link rel="stylesheet" href="/css/hatena.css" type="text/css" media="all" title="site"/> <link rel="stylesheet" href="/css/site.css" type="text/css" media="all" title="site"/> <meta name="description" content="Hatena::Let はブックマークレットをかんたんに作成・公開できるウェブサービスです" /> <meta name="Keywords" content="bookmarklet,bookmarklets,ブックマークレット,Hatena::Let,はてなレット" /> <meta name="csrf-token" content="TSsbcNMlVMXRyHPmxWkwiY-27EOLtOb3IWA4l21PSDt7j9qAQnihj3YmsAd1kLLNWrmlUCYCOeL3KTrdOfHdnw==" /> <link href="https://let.hatelabo.jp/rss" rel="alternate" title="Feed - Hatena::Let" type="application/rss+xml" /> <script type="text/javascript" src="https://s.hatena.ne.jp/js/HatenaStar.js"></script> <script type="text/javascript" src="/js/site-script.js?_=1"></script> <script type="text/javascript"> Hatena.Star.SiteConfig = { entryNodes: { 'div.codelist': { uri: 'div.title a.code-path', title: 'div.title a.code-path', container: 'div.title' } } }; </script> </head> <body> <div id="simple-header"> <div id="simple-header-body"> <div id="logo"> <a href="/"><img src="/images/logo.gif" title="はてな" alt="はてな" class="logo"></a> </div> <ul class="menu"> <li><a href="https://www.hatena.ne.jp/register">Register</a></li> <li><a href="/auth/hatena">Login</a></li> <li><a href="/help">Help</a></li> </ul> </div> </div> <div id="hatena-body"> <div id="body"> <div id="container"> <div id="top-message"> <p class="top-count-container"> <span class="top-bookmarklet-count"> 82005 Bookmarklets! </span> <a class="top-create-link" href="/l">Create</a> </p> <p class="top-guide"> Hatena::Let でブックマークレットをかんたんに作成・公開しよう! </p> </div> <div class="hfeed"> <div class="codelist"> <div class="title"> <a href="/noromanba/"><img src="https://cdn.profile-image.st-hatena.com/users/noromanba/profile_s.gif" class="profile-image" alt="noromanba" title="noromanba" width="16" height="16"></a> <a href="/noromanba/let/hJmc_cKWip10" class="code-path">[FIXED] `` bomb PoC</a><span class="time_ago">2022-01-03</span> </div> <div class="attr"> <p class="description">Hatena::Let template strings crash PoC</p> <pre class="packed-source">try{`//`}catch(e){window.alert(e)}</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mztns/"><img src="https://cdn.profile-image.st-hatena.com/users/mztns/profile_s.gif" class="profile-image" alt="mztns" title="mztns" width="16" height="16"></a> <a href="/mztns/let/jNe5i9bqgsAA" class="code-path">ページ内の特定の文字列を置換</a><span class="time_ago">2021-11-27</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">const s=prompt("置換前の文字列","");const r=prompt("置換後の文字列","");void(document.body.innerH...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/n-nf/"><img src="https://cdn.profile-image.st-hatena.com/users/n-nf/profile_s.gif" class="profile-image" alt="n-nf" title="n-nf" width="16" height="16"></a> <a href="/n-nf/let/jMLLqqD4gsAA" class="code-path">get textage link</a><span class="time_ago">2021-10-25</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">const s=document.createElement("script");s.src="https://textage.cc/score/titletbl.js";s.onload=()...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mino90/"><img src="https://cdn.profile-image.st-hatena.com/users/mino90/profile_s.gif" class="profile-image" alt="mino90" title="mino90" width="16" height="16"></a> <a href="/mino90/let/hJmej_PhqoA6" class="code-path">選択したテキストをデコード</a><span class="time_ago">2021-09-29</span> </div> <div class="attr"> <p class="description">prompt表示</p> <pre class="packed-source">(function(){var a=unescape(document.getSelection());prompt(a,a)})();</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/ihok/"><img src="https://cdn.profile-image.st-hatena.com/users/ihok/profile_s.gif" class="profile-image" alt="ihok" title="ihok" width="16" height="16"></a> <a href="/ihok/let/jJSKj-7sgeAA" class="code-path">ページ中にあるアフィリエイトのリンクを、通常リンクに書き換える</a><span class="time_ago">2021-08-16</span> </div> <div class="attr"> <p class="description">タイトルの通り。必要に応じて最初の配列の所の ["アフィリンクに含まれているURL']", "リダイレクト先...</p> <pre class="packed-source">var af=[["a[href*='af.moshimo.com/']","url"],["a[href*='afl.rakuten.co.jp/']","pc"],["a[href*='px...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/Lhankor_Mhy/"><img src="https://cdn.profile-image.st-hatena.com/users/Lhankor_Mhy/profile_s.gif" class="profile-image" alt="Lhankor_Mhy" title="Lhankor_Mhy" width="16" height="16"></a> <a href="/Lhankor_Mhy/let/jIKH0YzigMAA" class="code-path">teratail NG</a><span class="time_ago">2021-07-17</span> </div> <div class="attr"> <p class="description">teratailのNG回答者リストをローカルに保存して、質問を見えなくする</p> <pre class="packed-source">(function(){'use strict';const localStorageKey='63cc7db5-31e8-7c4f-6dbb-2210c1c056de';const heade...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/yuta25/"><img src="https://cdn.profile-image.st-hatena.com/users/yuta25/profile_s.gif" class="profile-image" alt="yuta25" title="yuta25" width="16" height="16"></a> <a href="/yuta25/let/i_z9zazWgMAA" class="code-path">SpotifyJacket</a><span class="time_ago">2021-07-12</span> </div> <div class="attr"> <p class="description">Spotifyのアルバム・ジャケット画像のURLを開く</p> <pre class="packed-source">open(document.querySelector('div.contentSpacing div div img').srcset.split(',').find((s=>s.match(...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mino90/"><img src="https://cdn.profile-image.st-hatena.com/users/mino90/profile_s.gif" class="profile-image" alt="mino90" title="mino90" width="16" height="16"></a> <a href="/mino90/let/i_vnloOIgMAA" class="code-path">Wayback Machine で検索</a><span class="time_ago">2021-07-07</span> </div> <div class="attr"> <p class="description">別タブで Internet Archive の Wayback Machine で検索</p> <pre class="packed-source">(function(){window.open('https://web.archive.org/web/*/'+location.href,'_blank','noopener=yes,nor...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mino90/"><img src="https://cdn.profile-image.st-hatena.com/users/mino90/profile_s.gif" class="profile-image" alt="mino90" title="mino90" width="16" height="16"></a> <a href="/mino90/let/i_uC2MqWgMAA" class="code-path">Twitter検索 URLで</a><span class="time_ago">2021-07-06</span> </div> <div class="attr"> <p class="description">開いているURLでTwitter検索を新規タブで開く</p> <pre class="packed-source">(function(){window.open('https://twitter.com/search?q='+encodeURIComponent(location.href),'_blank...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mino90/"><img src="https://cdn.profile-image.st-hatena.com/users/mino90/profile_s.gif" class="profile-image" alt="mino90" title="mino90" width="16" height="16"></a> <a href="/mino90/let/iuCL9OrSguAA" class="code-path">Google 翻訳で日本語に</a><span class="time_ago">2021-07-06</span> </div> <div class="attr"> <p class="description">別タブで開く。言語は自動的に検出。</p> <pre class="packed-source">(function(){window.open('https://translate.google.com/translate?sl=auto&tl=ja&u='+encodeURICompon...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/miki_bene/"><img src="https://cdn.profile-image.st-hatena.com/users/miki_bene/profile_s.gif" class="profile-image" alt="miki_bene" title="miki_bene" width="16" height="16"></a> <a href="/miki_bene/let/i_HH7sDEgoAA" class="code-path">Amazonほしいものリスト合計金額</a><span class="time_ago">2021-06-22</span> </div> <div class="attr"> <p class="description">Amazon のほしいものリストの合計金額を表示します。</p> <pre class="packed-source">var cost=0;document.querySelectorAll('#g-items .a-price-whole').forEach((price=>{cost+=parseInt(p...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/unarist/"><img src="https://cdn.profile-image.st-hatena.com/users/unarist/profile_s.gif" class="profile-image" alt="unarist" title="unarist" width="16" height="16"></a> <a href="/unarist/let/i-6fpfbEgcAA" class="code-path">KeyLogger</a><span class="time_ago">2021-06-16</span> </div> <div class="attr"> <p class="description">Simple Key Logger (w/o modifiers, composition)</p> <pre class="packed-source">(()=>{if(window.__KeyLogger_finish){window.__KeyLogger_finish();return}let events=['timestamp (As...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/kijuky/"><img src="https://cdn.profile-image.st-hatena.com/users/kijuky/profile_s.gif" class="profile-image" alt="kijuky" title="kijuky" width="16" height="16"></a> <a href="/kijuky/let/i-mCgve-gcAA" class="code-path">はてなブログの記事編集ページのフォントを Courier New (等幅フォント)にする</a><span class="time_ago">2021-06-08</span> </div> <div class="attr"> <p class="description">はてなブログの記事編集ページのフォントを Courier New (等幅フォント)にする</p> </div> </div> <div class="codelist"> <div class="title"> <a href="/noromanba/"><img src="https://cdn.profile-image.st-hatena.com/users/noromanba/profile_s.gif" class="profile-image" alt="noromanba" title="noromanba" width="16" height="16"></a> <a href="/noromanba/let/i-f4kMzsgqAA" class="code-path">ytchat</a><span class="time_ago">2021-06-07</span> </div> <div class="attr"> <p class="description">open chatting window/tab</p> <pre class="packed-source">(()=>{'use strict';const url=new URL(location.href);const id=url.searchParams.get('v')||url.pathn...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/furyu-tei/"><img src="https://cdn.profile-image.st-hatena.com/users/furyu-tei/profile_s.gif" class="profile-image" alt="furyu-tei" title="furyu-tei" width="16" height="16"></a> <a href="/furyu-tei/let/i92Q_LjAgMAA" class="code-path">#なんちゃってツイートスタンプ</a><span class="time_ago">2021-05-21</span> </div> <div class="attr"> <p class="description">メディア(画像・動画)付きツイートをスタンプ風に引用(=メディアのみ引用)してツイート(個別ツイー...</p> <pre class="packed-source">(async()=>{'use strict';const tweet_urlobj=new URL(location.href),matches=tweet_urlobj.pathname.m...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/pacochi/"><img src="https://cdn.profile-image.st-hatena.com/users/pacochi/profile_s.gif" class="profile-image" alt="pacochi" title="pacochi" width="16" height="16"></a> <a href="/pacochi/let/i9uwjJnogMAA" class="code-path">[?]ここより古いトゥート</a><span class="time_ago">2021-05-18</span> </div> <div class="attr"> <p class="description">閲覧しているパーマリンクを起点にしたトゥートの一覧を表示します。</p> <pre class="packed-source">location.href=location.href.replace(/(\d+)$/,(s=>'with_replies?max_id='+(BigInt(s)+1n)));</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/blankbox777/"><img src="https://cdn.profile-image.st-hatena.com/users/blankbox777/profile_s.gif" class="profile-image" alt="blankbox777" title="blankbox777" width="16" height="16"></a> <a href="/blankbox777/let/i9P2x9iugqAA" class="code-path">Windowsのファイルサーバのpathをmacに変換するレート</a><span class="time_ago">2021-05-07</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">let path;let pattern;var fetchPath=function(callback){path=prompt('PATH入力してください');pattern...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/unarist/"><img src="https://cdn.profile-image.st-hatena.com/users/unarist/profile_s.gif" class="profile-image" alt="unarist" title="unarist" width="16" height="16"></a> <a href="/unarist/let/i8220fXEgMAA" class="code-path">Slackの箇条書きを普通のul入れ子にする</a><span class="time_ago">2021-04-26</span> </div> <div class="attr"> <p class="description"></p> <pre class="packed-source">(()=>{document.querySelectorAll('.p-rich_text_list').forEach((x=>x.classList.remove('p-rich_text_...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/maRk/"><img src="https://cdn.profile-image.st-hatena.com/users/maRk/profile_s.gif" class="profile-image" alt="maRk" title="maRk" width="16" height="16"></a> <a href="/maRk/let/i8PZ5IvWgqAA" class="code-path">Convert hashTag INSTA to TW</a><span class="time_ago">2021-04-11</span> </div> <div class="attr"> <p class="description">インスタグラムのハッシュタグを Twitter のハッシュタグリンクにする</p> <pre class="packed-source">(()=>{const check_domain=document.domain==="www.instagram.com"?1:0;if(!check_domain)return;let co...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/maRk/"><img src="https://cdn.profile-image.st-hatena.com/users/maRk/profile_s.gif" class="profile-image" alt="maRk" title="maRk" width="16" height="16"></a> <a href="/maRk/let/i8Gaq9OQgqAA" class="code-path">はてブロ This</a><span class="time_ago">2021-04-07</span> </div> <div class="attr"> <p class="description">閲覧ページをもとにはてなブログを作成</p> <pre class="packed-source">(()=>{const editURL="https://blog.hatena.ne.jp/my/edit";let selectTxt=window.getSelection().toStr...</pre> </div> </div> </div> <a class-"pager-prev" href="/?page=6"><<</a> <a href="/?page=3">3</a> <a href="/?page=4">4</a> <a href="/?page=5">5</a> <a href="/?page=6">6</a> <strong>7</strong> <a href="/?page=8">8</a> <a href="/?page=9">9</a> <a href="/?page=10">10</a> <a href="/?page=11">11</a> <a href="/?page=12">12</a> <a class="pager-next" href="/?page=8" rel="next">>></a> </div> </div> </div> <script type="text/javascript">Let.init();</script> </body> </html>