81959 Bookmarklets! Create

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

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

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

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

{const targetDataAttributeNames=["data-legacy-last-message-id","data-legacy-message-id","data-leg...

Twitterの個別ツイート(https://twitter.com/<name>/status/<id>)のURL(<id>)からおおよその投稿時刻を...

(()=>{'use strict';const twitter_epoch_time=1288834974657n,threshold_tweet_id=300000000000000n;le...
onk b10/26

はてなブックマークのコメント一覧ページに遷移する

(()=>{location.href=`https://b.hatena.ne.jp/entry/${location.href.replace('#','%23')}`})();

my bookmarklet

document.querySelectorAll("video[disableremoteplayback]").forEach((function(e){e.removeAttribute(...

event catpture の活躍の場

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

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]')||{})...
1 2 3 4 5 6 7 8 9 10