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="adv1dVRUEXzMZE-SWbrQxpfKUvrY_yVbOUhlUzJziRNCofqsZyDWW_cr6Y2KgCpsf_qD0x0ldr-260w9jS0mNw==" /> <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="/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/hJmdpf3zhZcA" class="code-path">ツイートID→時刻変換</a><span class="time_ago">2023-11-11</span> </div> <div class="attr"> <p class="description">Twitterの個別ツイート(https://twitter.com/<name>/status/<id>)のURL(<id>)からおおよその投稿時刻を...</p> <pre class="packed-source">(()=>{'use strict';const twitter_epoch_time=1288834974657n,threshold_tweet_id=300000000000000n;le...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/onk/"><img src="https://cdn.profile-image.st-hatena.com/users/onk/profile_s.gif" class="profile-image" alt="onk" title="onk" width="16" height="16"></a> <a href="/onk/let/kJmSpcv0geAA" class="code-path">b</a><span class="time_ago">2023-10-26</span> </div> <div class="attr"> <p class="description">はてなブックマークのコメント一覧ページに遷移する</p> <pre class="packed-source">(()=>{location.href=`https://b.hatena.ne.jp/entry/${location.href.replace('#','%23')}`})();</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/labocho/"><img src="https://cdn.profile-image.st-hatena.com/users/labocho/profile_s.gif" class="profile-image" alt="labocho" title="labocho" width="16" height="16"></a> <a href="/labocho/let/kJTI6sDEgMAA" class="code-path">Remove disableremoteplayback</a><span class="time_ago">2023-10-19</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">document.querySelectorAll("video[disableremoteplayback]").forEach((function(e){e.removeAttribute(...</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/hJmdtaLojaxI" class="code-path">Disable contextmenu blocking</a><span class="time_ago">2023-10-15</span> </div> <div class="attr"> <p class="description">event catpture の活躍の場</p> <pre class="packed-source">['contextmenu','selectstart','copy','mousedown'].forEach((ev=>window.addEventListener(ev,(e=>e.st...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/rei0000_enl/"><img src="https://cdn.profile-image.st-hatena.com/users/rei0000_enl/profile_s.gif" class="profile-image" alt="rei0000_enl" title="rei0000_enl" width="16" height="16"></a> <a href="/rei0000_enl/let/j-Ku5O6ygeAA" class="code-path">良い wayspots copy</a><span class="time_ago">2023-08-21</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">(function(){var title=encodeURIComponent(document.getElementsByClassName('showcase-item__title')[...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/a666666/"><img src="https://cdn.profile-image.st-hatena.com/users/a666666/profile_s.gif" class="profile-image" alt="a666666" title="a666666" width="16" height="16"></a> <a href="/a666666/let/hJmd9N-imc4_" class="code-path">Feel the birds:</a><span class="time_ago">2023-07-25</span> </div> <div class="attr"> <p class="description">focus</p> <pre class="packed-source">var dot=document.createElementNS("http://www.w3.org/2000/svg","circle");dot.setAttribute("cx",5.5...</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/j9W6maaGgKAA" class="code-path">test bookmarklet</a><span class="time_ago">2023-07-13</span> </div> <div class="attr"> <p class="description">https://teratail.com/questions/ncsqe99mif6af6#reply-2mcicqlromm4lp</p> <pre class="packed-source">void document.addEventListener('click',(e=>alert(`${e.clientX},${e.clientY}`)),{once:true});</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/j9W5qIj-gKAA" class="code-path">test bookmarklet</a><span class="time_ago">2023-07-13</span> </div> <div class="attr"> <p class="description">https://teratail.com/questions/ncsqe99mif6af6</p> <pre class="packed-source">void document.elementFromPoint(400,0).click();</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/j9W0mKmGgKAA" class="code-path">OpenKCR</a><span class="time_ago">2023-07-13</span> </div> <div class="attr"> <p class="description">Kindleの個別商品ページからKindle Cloud Readerを開く</p> <pre class="packed-source">(()=>{const is_kindle_page=()=>{const kindle_mark=document.querySelector('#bylineInfo > span:nth-...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/labocho/"><img src="https://cdn.profile-image.st-hatena.com/users/labocho/profile_s.gif" class="profile-image" alt="labocho" title="labocho" width="16" height="16"></a> <a href="/labocho/let/j8ef4OiKgeAA" class="code-path">牌譜レビューで URL から余計な文字を削除</a><span class="time_ago">2023-06-21</span> </div> <div class="attr"> <p class="description">Mahjong AI Utilities の牌譜レビューで URL から https:// より前にある文字を削除</p> <pre class="packed-source">if(location.href.match(/^https:\/\/mjai.ekyu.moe/)){var el=document.querySelector("#log-url");el....</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/labocho/"><img src="https://cdn.profile-image.st-hatena.com/users/labocho/profile_s.gif" class="profile-image" alt="labocho" title="labocho" width="16" height="16"></a> <a href="/labocho/let/j8Xn3rWOgKAA" class="code-path">雀魂からコピーした URL を牌譜レビューに貼り付け</a><span class="time_ago">2023-06-19</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">navigator.clipboard.readText().then((s=>{document.querySelector("#log-url").value=s.replace(/.*ht...</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/j7qesMCUgYAA" class="code-path">コメントメタブタイトル修正</a><span class="time_ago">2023-06-03</span> </div> <div class="attr"> <p class="description">メタブタイトルが「...のコメント」となってしまうところを、元ページのタイトルに変更する。自分が公開...</p> <pre class="packed-source">void(async()=>{if(!document.querySelector('.entry-edit')){alert('公開ブクマされていないようなので...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/bashikoban/"><img src="https://cdn.profile-image.st-hatena.com/users/bashikoban/profile_s.gif" class="profile-image" alt="bashikoban" title="bashikoban" width="16" height="16"></a> <a href="/bashikoban/let/j6_LnrnygYAA" class="code-path">widget</a><span class="time_ago">2023-05-15</span> </div> <div class="attr"> <p class="description">my bookmarklet</p> <pre class="packed-source">javascript:(function(){open('https://mail.google.com/mail/#inbox','_blank','width=600,height=600,...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/rAdio/"><img src="https://cdn.profile-image.st-hatena.com/users/rAdio/profile_s.gif" class="profile-image" alt="rAdio" title="rAdio" width="16" height="16"></a> <a href="/rAdio/let/j56R0ZPkgKAA" class="code-path">はてなブックマークコメントツイート</a><span class="time_ago">2023-04-18</span> </div> <div class="attr"> <p class="description">はてなブックマークページから自分のコメントとeidベースURLを持ってツイート投稿フォームに遷移するブ...</p> <pre class="packed-source">javascript:(()=>{document.location.href='https://twitter.com/share?text='+encodeURIComponent(docu...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/mizdra/"><img src="https://cdn.profile-image.st-hatena.com/users/mizdra/profile_s.gif" class="profile-image" alt="mizdra" title="mizdra" width="16" height="16"></a> <a href="/mizdra/let/j5nS3Nv0geAA" class="code-path">コードブロックを翻訳対象から除外する</a><span class="time_ago">2023-04-11</span> </div> <div class="attr"> <p class="description">pre要素とcode要素にtranslate="no"を付けて翻訳対象から外します</p> <pre class="packed-source">document.querySelectorAll('pre, code').forEach((el=>el.setAttribute('translate','no')));</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/ivDEh__8gKAA" class="code-path">MS日英切替</a><span class="time_ago">2023-04-05</span> </div> <div class="attr"> <p class="description">マイクロソフトのサポートページで日本語ページ⇔英語ページを切り替える</p> <pre class="packed-source">(()=>{let matches=location.href.match(/^https?:\/\/(docs|support|learn)\.microsoft\.com\/(.+?)-(....</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/j5TygOrgguAA" class="code-path">Tangolf の結果コピー</a><span class="time_ago">2023-04-04</span> </div> <div class="attr"> <p class="description">ツイートボタンをコピーボタンにします。</p> <pre class="packed-source">((D=document,B=(t=>`[class^="_${t}Button_"]`),T=((n=D)=>n?.querySelector?.(B('share'))),O=(e=>new...</pre> </div> </div> <div class="codelist"> <div class="title"> <a href="/OkadaHiroshi/"><img src="https://cdn.profile-image.st-hatena.com/users/OkadaHiroshi/profile_s.gif" class="profile-image" alt="OkadaHiroshi" title="OkadaHiroshi" width="16" height="16"></a> <a href="/OkadaHiroshi/let/j4v1uOfsgaAA" class="code-path">SaveChatGPT</a><span class="time_ago">2023-03-23</span> </div> <div class="attr"> <p class="description">ChatGPTのチャットをテキストファイルに</p> <pre class="packed-source">(()=>{function getUserName(element){const imgElements=element.querySelectorAll("img[alt]");for(co...</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/jrLIsPyegeAA" class="code-path">n年前のブクマを見る</a><span class="time_ago">2023-03-06</span> </div> <div class="attr"> <p class="description">はてなブックマークにログインしていれば、n年前のブクマページに移動します。IEでは動作せず。</p> <pre class="packed-source">const n=1;const oneYearBefore=new Date;oneYearBefore.setFullYear((new Date).getFullYear()-n);loca...</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/hJmfrs6AsMBu" class="code-path">wikipedia random autopagerize</a><span class="time_ago">2023-02-13</span> </div> <div class="attr"> <p class="description">wikipedia random auopagerize</p> <pre class="packed-source">(function(){let loading=false;const x=new XMLHttpRequest;x.onload=function(e){history.pushState("...</pre> </div> </div> </div> <a class-"pager-prev" href="/?page=3"><<</a> <a href="/?page=1">1</a> <a href="/?page=2">2</a> <a href="/?page=3">3</a> <strong>4</strong> <a href="/?page=5">5</a> <a href="/?page=6">6</a> <a href="/?page=7">7</a> <a href="/?page=8">8</a> <a href="/?page=9">9</a> <a href="/?page=10">10</a> <a class="pager-next" href="/?page=5" rel="next">>></a> </div> </div> </div> <script type="text/javascript">Let.init();</script> </body> </html>