81973 Bookmarklets! Create

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

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...
labocho PinPで再生2022-11-08

動画を PinPで再生するボタンを表示します

(function(){var e=document.createElement("button");e.innerText="PinP";e.style="position: absolute...

PCからも「視聴しました!」ツイートができたらいいなと思い作成しました.

javascript:(function(){var pauseInfo=document.getElementById("pauseInfo");var pauseInfoTxt1_eleme...

my bookmarklet

const baseUrl="https://amazon.co.jp/product-reviews/"+location.href.match(/\/([A-Z0-9]{10,})(\/|\...
acomagu PDF Dark Mode2022-09-24

FirefoxのPDF Viewerで白黒反転します

(()=>{viewer.style='filter: grayscale(1) invert(1) sepia(1)'})();

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

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

scrapboxで特定行にスクロールする

(()=>{document.getElementById("L"+location.hash.substr(1)).scrollIntoView()})();

imgタグのalt属性が未指定の要素を赤くハイライトします。指定されていたら緑色でハイライトします。一...

(()=>{const highlight=element=>{element.querySelectorAll("img").forEach((img=>{img.style.outline=...
yuta25 sbquote2022-08-17

Scrapboxに貼りやすいように選択中のテキストをクリップボードにコピー

async function sbquote(){const quote=window.getSelection().toString();const url=window.location.h...

U-フレット の機能Box をPC画面で横並びにしないためのもの

(()=>{const funcbox=document.querySelector("div.settings");funcbox.classList.remove('settings')})();

imgまたはimg[data-src]の入った要素で、横400px高さ700pxを超える画像を見開きで読むためのブックマー...

var dataSrc=[];var count=0,_width=400,_height=700;(function(){'use strict';document.querySelector...
<< 1 2 3 4 5 6 7 8 9 10