81983 Bookmarklets! Create

Hatena::Let でブックマークレットをかんたんに作成・公開しよう!

furyu-tei OpenKCR2023-07-13

Kindleの個別商品ページからKindle Cloud Readerを開く

(()=>{const is_kindle_page=()=>{const kindle_mark=document.querySelector('#bylineInfo > span:nth-...

ページ内にある~.PDFというリンクすべてからPDFファイルを取得して、zipして一括ダウンロードします。

(async()=>{function _import(s){return new Promise((function(resolve){const script=document.create...

Mahjong AI Utilities の牌譜レビューで URL から https:// より前にある文字を削除

if(location.href.match(/^https:\/\/mjai.ekyu.moe/)){var el=document.querySelector("#log-url");el....

my bookmarklet

navigator.clipboard.readText().then((s=>{document.querySelector("#log-url").value=s.replace(/.*ht...

メタブタイトルが「...のコメント」となってしまうところを、元ページのタイトルに変更する。自分が公開...

void(async()=>{if(!document.querySelector('.entry-edit')){alert('公開ブクマされていないようなので...
bashikoban widget2023-05-15

my bookmarklet

javascript:(function(){open('https://mail.google.com/mail/#inbox','_blank','width=600,height=600,...

はてなブックマークページから自分のコメントとeidベースURLを持ってツイート投稿フォームに遷移するブ...

javascript:(()=>{document.location.href='https://twitter.com/share?text='+encodeURIComponent(docu...

pre要素とcode要素にtranslate="no"を付けて翻訳対象から外します

document.querySelectorAll('pre, code').forEach((el=>el.setAttribute('translate','no')));
furyu-tei MS日英切替2023-04-05

マイクロソフトのサポートページで日本語ページ⇔英語ページを切り替える

(()=>{let matches=location.href.match(/^https?:\/\/(docs|support|learn)\.microsoft\.com\/(.+?)-(....

ツイートボタンをコピーボタンにします。

((D=document,B=(t=>`[class^="_${t}Button_"]`),T=((n=D)=>n?.querySelector?.(B('share'))),O=(e=>new...

Twitterでシェアする際のツイート内容を自分用にカスタマイズ(※アソシエイトツールバー有効時のみ)

(()=>{const show_text_link=()=>{document.querySelector('#amzn-ss-text-link a').click()},get_short...
OkadaHiroshi SaveChatGPT2023-03-23

ChatGPTのチャットをテキストファイルに

(()=>{function getUserName(element){const imgElements=element.querySelectorAll("img[alt]");for(co...

はてなブックマークにログインしていれば、n年前のブクマページに移動します。IEでは動作せず。

const n=1;const oneYearBefore=new Date;oneYearBefore.setFullYear((new Date).getFullYear()-n);loca...

wikipedia random auopagerize

(function(){let loading=false;const x=new XMLHttpRequest;x.onload=function(e){history.pushState("...
unarist T/U box2022-12-07

w/ "{title} {url}" format. easy copyable title/url box; click to copy, double-click outer to close

(()=>{'use strict';const tag=(name,props={},children=[])=>{const e=Object.assign(document.createE...

見てるサイトでサイト内検索

(()=>{const basePath=prompt('Base path?',location.href.replace(/(.+\/)(.+)?$/,'$1').replace(/^htt...

比較したいブコメページを入力→コメントを比較したテキストをはてな記法で出力

(async()=>{const regexpEscape=s=>s.replace(/[\\^$.*+?()[\]{}|]/g,'\\$&');const regexp=new RegExp(...

比較したいブコメページを入力→コメントがユーザーごとに並ぶ

(async()=>{document.documentElement.scrollTop=document.documentElement.scrollHeight;const regexpE...

/?~ 以降を消す

(function(){if(/^https:\/\/www\.bilibili\.com\/video\//.test(location.href)){location.href='https...

定数は調整をお願いします。音楽のポン出しに便利です。

javascript:x="";for(let e=1;e<41;e++){x=x+e+".<input style=margin-top:50px; type=file id="+e+"><i...
<< 1 2 3 4 5 6 7 8 9 10