8985nize! on dsbd
てきとー。ただコピペしただけ。動作未確認。ホントーにすみません。
// ==UserScript== // @name 8985nize! on dsbd // @namespace http://www.tumblr.com/ // @include http://www.tumblr.com/dashboard* // @resource jQuery http://w.ikenie.com/8985nize/jquery.js // ==/UserScript== /* 8985nize bookmarklet by IKENIE http://ikenie.com */ (function () { eval(GM_getResourceText("jQuery")); var f = function(doc) { $("img").each(function(){ i = 0; offset = $(this).offset(); var div = document.createElement("div"); div.style.position = "absolute"; div.style.zIndex = 9999; div.style.top = offset.top+'px'; div.style.left = 0; div.style.width = '100%'; div.style.height = this.height+'px'; div.style.textAlign = "right"; div.style.background = 'url(http://w.ikenie.com/crop/crop.php?f='+this.src+'&m=bg)'; document.body.appendChild(div); var div2 = document.createElement("div"); div2.style.background = 'url(http://w.ikenie.com/crop/crop.php?f='+this.src+'&m=left) no-repeat'; div.appendChild(div2); var img = document.createElement("img"); img.src = 'http://w.ikenie.com/crop/crop.php?f='+this.src+'&m=right'; div2.appendChild(img); /* ***flash version*** var so = new SWFObject("http://w.ikenie.com/8985nize/8985.swf?" + new Date().getTime(), '8985nize'+i, '100%', this.style.height, "9", "#ffffff"); //so.addParam("wmode", "transparent"); so.addParam("allowScriptAccess", "always"); so.addVariable("url","http://w.ikenie.com/8985nize/wrap.php?f="+this.src); so.addVariable("ofst", 5); so.write(div); */ this.style.visibility = 'hidden'; i++; }); } f(document); if (window.AutoPagerize) window.AutoPagerize.addFilter(function(docs){ for (var i = 0,l = docs.length;i < l;i++) f(docs[i]); }); })();
イケニエスタイル + addFilter(autopagerize) + jquery on greasemonkey
以下、リファレンスだったりじゃなかったり。thx エビバデ。なんにもわかってないのに動いちゃったヨ。
- http://d.hatena.ne.jp/taizooo/20081031/1225417611
- http://os0x.g.hatena.ne.jp/os0x/20080326/1206542957
- http://taizooo.tumblr.com/post/55139263/tumblr-dsbd-photo-m2d-conv
- http://d.hatena.ne.jp/natu_n/20080613/1213354631
- http://d.hatena.ne.jp/monjudoh/20081024/1224863048
- http://gist.github.com/17960
特にid:os0xには感謝のコトバを捧げたいと思いまっス。thx!!!