81952 Bookmarklets! Create

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

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

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

my bookmarklet

(()=>{try{document.querySelector('input[name*="[result_start_time_text]"]').value='09:00';documen...
bashikoban widget05/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...

コメントメタブと2階ブクマを展開します。説明→https://realtor-readyabooks.hatenablog.com/entry/202...

(async()=>{const APIURL='https://b.hatena.ne.jp/entry/jsonlite/?url=';document.body.insertAdjacen...

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

document.querySelectorAll('pre, code').forEach((el=>el.setAttribute('translate','no')));

[タイトル URL]という形式でページのタイトルとURLをpromptします

(()=>{'use strict';let canonical=(document.querySelector('head link[rel="canonical"][href]')||{})...

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

(()=>{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...

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("...

ブックマークレットを使ってからメールスレッドやタイトルなどをクリックしてください

{const targetDataAttribute="data-legacy-last-message-id";alert('パーマリンクを取得するメールをク...

JSON で出力します。

void(async(d=document,s=(_=>new Promise((r=>setTimeout(r,2e3)))),m=JSON.parse(d.querySelector('#i...
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...
1 2 3 4 5 6 7 8 9 10