81746 Bookmarklets! Create

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

CWを自動で開きます。まる。

((target,proc)=>(new MutationObserver(m=>m.forEach(r=>proc(r.addedNodes))).observe(target,{childL...

同上

(function(global){var document=global.document;var nodes=Array.from(document.querySelectorAll('.r...

カスタム絵文字の後ろについているスペースをゼロ幅スペースに変換します。

((t=document.querySelector('.compose-form textarea'),b=s=>s.replace(/[^\r\n]/g,''))=>{if(t){Objec...
jigendaddy no title09/15

try to take over the world!

var start=new Date();var result=document.evaluate('//script',document,null,7,null);var result2=do...

event catpture の活躍の場

document.head.insertAdjacentHTML('beforeend','<style>* { user-select: initial !important }</style...
jigendaddy no title08/29

try to take over the world!

var piyo=document.evaluate('//div[@class="comment_p piyobox"]',document,null,7,null);var dummy=do...

Add ICON to Hatena Star like Hatena Blog Star

(function(){var D_=document;var RE_USER=/^(\S+)( \(\w+\))?$/;var RE_FACEBOOK_ID=/@facebook$/;var ...

Add ICON to Hatena Star like Hatena Blog Star

(function(){var D_=document;var RE_USER=/^(\S+)( \(\w+\))?$/;var RE_FACEBOOK_ID=/@facebook$/;var ...
jigendaddy no title08/25

var r_n=document.evaluate('//a[@class="resnumhead"][./following-sibling::span[@class="trip"]]',do...

紀伊国屋Bookweb個別ページから

const isbn=document.querySelector('*[content^=isbn]').textContent.split(':')[1];const title=docu...
noromanba lighter08/24

mobile optimization

(()=>{'use strict';const url=location.href;const proxy='https://googleweblight.com/?lite_url=';lo...

翻訳してしまっている場合でも原文からコピーしてきて修復

(()=>{const execAll=function*(re,str,m=null){while((m=re.exec(str))!==null)yield m;};const src_st...
jigendaddy no title08/22

document.body.innerHTML=document.body.innerHTML.replace(/<span class="name"><\/span\>/,'<span cla...
noromanba props?08/10

list global props of content-scripts

{const sandbox=document.body.appendChild(document.createElement('iframe')).contentWindow
console....
unarist T/U box08/09

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...
lololo345 no title08/05

javascript:(function(){document.querySelectorAll('#main a').forEach(function(element,index){conso...
noromanba ENforce08/01

enforce English page w/o login/sign-in

(()=>{'use strict';const url=new URL(location.href);const langQuery=new Set(['hl','lang',]);[...l...
noromanba chosEN08/01

choice English page w/o login/sign-in

(()=>{'use strict';const url=new URL(location.href);const langQuery=new Set(['hl','lang',]);[...u...

get Signed INT32 max value 2147483647 w/ DOM API

(()=>{'use strict';const wall=document.head||document.body||document.documentElement;const sandbo...
nippa218 test07/26

my bookmarklet

nz='';$('.task__name-inner').each(function(){nz+=$(this).text()+'\n';});$('#logo').append('<texta...
1 2 3 4 5 6 7 8 9 10