Lhankor_Mhy (41)

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

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

Pocket のリンクから ?utm_source=pocket_saves などを外します。

{let timerId;new MutationObserver(((mutationList,observer)=>{mutationList.forEach((mutation=>{swi...

canonical URLではない場合にページ移動します。

{const canonical=document.querySelector('[rel=canonical]').href;if(location.href!==canonical)loca...

はてなグリーンスターに縁をつけます。via: https://b.hatena.ne.jp/entry/4748592896526814671/comment...

{let timerId;new MutationObserver(((mutationList,observer)=>{mutationList.forEach((mutation=>{swi...

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

{const targetDataAttributeNames=["data-legacy-last-message-id","data-legacy-message-id","data-leg...
Lhankor_Mhy test bookmarklet2023-07-13

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

void document.addEventListener('click',(e=>alert(`${e.clientX},${e.clientY}`)),{once:true});
Lhankor_Mhy test bookmarklet2023-07-13

https://teratail.com/questions/ncsqe99mif6af6

void document.elementFromPoint(400,0).click();

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

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

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

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

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

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

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

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

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

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

なんか、パーセントエンコーディングがアレ←プロトコルでリダイレクトされてた

void(location.href="https://www.kinokuniya.co.jp/disp/CSfDispListPage_001.jsp?qs=true&ptk=03&q="+...

エントリページで動作します。

document.querySelector('.is-my-bookmark .hatena-star-inner-count')?.click?.();void setTimeout((()...
Lhankor_Mhy Table to CSV2022-01-04

テーブルクリックでCSVとしてダウンロード

{const target=document.querySelectorAll('table');const dl=event=>{const bom=new Uint8Array([239,1...
Lhankor_Mhy teratail NG2021-07-17

teratailのNG回答者リストをローカルに保存して、質問を見えなくする

(function(){'use strict';const localStorageKey='63cc7db5-31e8-7c4f-6dbb-2210c1c056de';const heade...

プルリクできればいいんだけど…… とりあえずフォーク。

['contextmenu','selectstart','copy'].forEach((ev=>window.addEventListener(ev,(e=>e.stopPropagatio...

ページ途中へのフラグメント付きURL(#xxx)が欲しい時に

{const pipe=x=>f=>f?pipe(f(x)):x;const $attr=attr=>val=>e=>{if(val==null)return e.getAttribute(at...

https://ja.wikipedia.org/?curid= に移動します。

(async()=>{location.href='/'+`?curid=${(new DOMParser).parseFromString(await(await fetch(location...

https://teratail.com/questions/233570 からインスパイア。

void(async()=>{const $id=document.getElementById.bind(document);const $qs=(s,c=document)=>{const ...
1 2 3