cho45 (21)

cho45 セミ2015-06-19

みんな、大好き。セミ

function replaceText(root){var walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT,{accept...
cho45 既読スルー2014-09-04

a:visited の見分けがつかないときに使うと便利です

var style=document.createElement('style');style.appendChild(document.createTextNode("a:visited { ...
cho45 setFreq by RBN2014-07-05

my bookmarklet

function setFrequency(frequency){var socket=new WebSocket('ws://waatserver.local:51234');socket.o...
cho45 元気でる2014-06-18

my bookmarklet

document.body.setAttribute("style","background: url(http://hatenacorp.jp/images/hatenaportal/recr...

みんな、大好き。

document.body.addEventListener("DOMNodeInserted",(function me(e){var walker=document.createTreeWa...
cho45 Save Form State2014-01-24

実行すると開いているページのフォームの入力状態を復元するブックマークレットを生成します

var data=[];$('form').each(function(){var $this=$(this);data.push($this.serializeArray().filter(f...

みんな、大好き。

document.body.addEventListener("DOMNodeInserted",(function me(e){var walker=document.createTreeWa...

wikipedia の項目名をゆのっちに置換するだけです

var path=location.pathname.split('/');var target=decodeURIComponent(path[path.length-1]);document...
cho45 エディタ論争2012-06-22

みんな、大好き。

document.body.addEventListener("DOMNodeInserted",(function me(e){var walker=document.createTreeWa...
cho45 いいね!2012-06-07

みんな、大好き。

document.body.addEventListener("DOMNodeInserted",(function me(e){var walker=document.createTreeWa...

alert(function(){for(var a="",d=document.querySelectorAll("#days .day .body .section p:not([class...

chrome://extensions/

var ret="";var nodes=document.querySelectorAll('a[href^="https://chrome.google.com/webstore/detai...
cho45 高専2011-02-14

document.body.addEventListener("DOMNodeInserted",(function me(e){var walker=document.createTreeWa...

my bookmarklet

new function(){var lis=Array.prototype.slice.call(document.querySelectorAll('#bookmarked_user > l...
cho45 はて☆すた2010-05-28

はて☆すた をロードします

var contentName='__hatesta__container__';if(document.getElementById(contentName))return;var w=$(w...
cho45 Fullscreen2010-05-15

Resize browser

var sw=window.screen.width;var sh=window.screen.height;var w=sw;var h=sh-22;window.moveTo(0,0);wi...
cho45 Hatena::Services2010-05-15

Move Hatena::Services

var s=prompt('Service:');location='http://'+s+'.hatena.ne.jp/'+location.pathname.split("/")[1]+'/';
cho45 img.f->f2010-05-15

Move to permalink page from fotolife image

(function(_,_,_,_,user,_,permalink){location='http://f.hatena.ne.jp/'+user+'/'+permalink;}).apply...
cho45 Open by Drag2010-05-15

Open all links in drag-and-drop area.

selectNodeByDrag(function(results){if(confirm(results.length+' links selected. Open All?')){for(v...

Reload all Hatena::Star without page refreshing

(function(){Ten.DOM.getElementsByTagAndClassName("span","hatena-star-comment-container").forEach(...
1 2