81957 Bookmarklets! Create

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

my bookmarklet

(function(){var title=encodeURIComponent(document.getElementsByClassName('showcase-item__title')[...

focus

var dot=document.createElementNS("http://www.w3.org/2000/svg","circle");dot.setAttribute("cx",5.5...

https://teratail.com/questions/ncsqe99mif6af6#reply-2mcicqlromm4lp

void document.addEventListener('click',(e=>alert(`${e.clientX},${e.clientY}`)),{once:true});

https://teratail.com/questions/ncsqe99mif6af6

void document.elementFromPoint(400,0).click();
furyu-tei OpenKCR07/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 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("...
1 2 3 4 5 6 7 8 9 10