ç¹å®ã® Post ãã被 Reblog ã®å¤ã人ã調ã¹ã
ä½ãããã§æ¸ããã¨ã¯æã£ã¦ãããã®ãããããããã¿ã¤ãã«ã®éãã§
"ãã®ãã¹ãã¯èª°ããã® Reblog ãå¤ãã®ã"
ã調ã¹ã¾ãã
ã¾ããã¹ããéãã¾ãã
前日の投稿ã«ãªãããä»åã変態仮面の公式HPのキャプã使ç¨ãã¾ãã
ãã¹ããéããã [Ctrl + Shift + J] ã§éçºã³ã³ã½ã¼ã«ãéãã¾ãã
ããã§ä¸è¨ã®ã³ã¼ããå®è¡ã㦠notes ãã¼ã¸ã¸é£ã³ã¾ãã
location.href = document.body.innerHTML.match(/tumblrReq\.open\('GET','(\/notes\/\d+\/[^\?]+)/)[1]
notes ã表示ããã¦ããªã theme(ãã¼ã) ã使ç¨ãã¦ãããã¼ã¸ã§ã¯ UserAgent ã iPhone ãªã©ã¹ãã¼ããã©ã³ã«ãããã¨ã§è¡¨ç¤ºããããã¾ãã
notes ãã¼ã¸ãéãããä¸æ®µã®ããã£ã¨è¦ãããã¯ãªãã¯ã㦠notes ãããç¨åº¦èªã¿è¾¼ã¾ãã¾ãã
ãã㦠JS ã³ã³ã½ã¼ã«ã§ä»¥ä¸ã®ã³ã¼ããå®è¡ãã¾ãã
Object.prototype.kvMap = function kvMap(f) { var result = []; var k, v; for (k in this) { if (!this.__proto__.isPrototypeOf(this[k])) { result.push(f(k, this[k])); } } return result; } Array.apply(0, document.querySelectorAll('.source_tumblelog')) .reduce(function (o, v) { var domain = v.href.match(/http:\/\/([^\/]+)/)[1]; o[domain] = (o[domain] ? o[domain]+1 : 1); return o; }, {}) .kvMap(function (k, v){ return [k, v]; }) .sort(function(a, b){ return b[1]-a[1]; }) .map(function(v) { console.log(v[1], v[0]); });
ããã§è¢« Reblog ã¢ã«ã¦ã³ãã¨ãã®ã«ã¦ã³ããå¾ããã¾ãã
ãã£ã¨æ¥½ãªæ¹æ³ãããã¨æãã®ã§ããåç¥ã®æ¹ãããã£ããã£ããã³ã¡ã³ãããªããéã£ã¦ããã ããã¨å©ããã¾ãã