81995 Bookmarklets! Create

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

try to take over the world!

while(document.getElementById("test2")==null){var result=document.evaluate('//div[@class="skin-en...

Wizball の詳細ページで質問投稿日時を表示する

(_=>{if(location.hostname!="wizball.io"||!/^\/questions\/\d+/.test(location.pathname)){return}con...
chanchihiro bookmarklet2018-10-29

my bookmarklet

(function(){var SMILE_IMG='https://files.slack.com/files-pri/T02HZH8HZ-FDQ3V382X/smile.png';(func...

(function(){let lv=location.href.match(/lv[0-9]+/);if(lv){window.open('http://live.nicovideo.jp/n...

自分がインスタンスに登録した日時を表示します。

(j=>alert(new Date(j.accounts[j.meta.me].created_at).toLocaleString()))(JSON.parse(document.query...

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

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

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

((t=document.querySelector('.compose-form textarea'),b=(s=>s.replace(/[^\r\n]/g,'')))=>{if(t){Obj...
jigendaddy no title2018-08-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 title2018-08-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 lighter2018-08-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_str...
jigendaddy no title2018-08-22

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

list global props of content-scripts

{const sandbox=document.body.appendChild(document.createElement('iframe')).contentWindow;console....
lololo345 no title2018-08-05

javascript:(function(){document.querySelectorAll('#main a').forEach((function(element,index){cons...
noromanba ENforce2018-08-02

enforce English page w/o login/sign-in

(()=>{'use strict';const url=new URL(location.href);const langQuery=new Set(['hl','lang']);[...la...
noromanba chosEN2018-08-02

choice English page w/o login/sign-in

(()=>{'use strict';const url=new URL(location.href);const langQuery=new Set(['hl','lang']);[...ur...
noromanba rounDOM INT32 MAX2018-08-02

get Signed INT32 max value 2147483647 w/ DOM API

(()=>{'use strict';const wall=document.head||document.body||document.documentElement;const sandbo...
<< 11 12 13 14 15 16 17 18 19 20