例3:
<form onsubmit=” return false;”>
<input type=”submit” onclick=”SendForm(this.form)” >
</form>
<input type=”submit” onclick=”SendForm(this.form)” >
</form>
choice: function() {
for (var a = [{
min: 0,
max: 22716604
},
{
min: 22716605,
max: 67666062
},
{
min: 67666063,
max: 309781568
},
{
min: 309781569,
max: 2542121207
},
{
min: 2542121208,
max: 15080900593
},
{
min: 15080900593,
max: this.range.latest
}], b = [], c = 0, d = a.length; c < d; c++) if (! (a[c].max < this.range.oldest)) {
if (a[c].min < this.range.oldest) a[c].min = this.range.oldest;
b.push(a[c])
}
a = Math.round(Math.random() * (b.length - 1));
b = b[a];
return Math.round(Math.random() * (b.max - b.min) + 1) + b.min
}tumblrのsince_idごと時間帯
20000000000 : 2012/03/27
15000000000 : 2011/12/30
10000000000 : 2011/09/09
5000000000 : 2011/04/28
2500000000 : 2010/12/28
1000000000 : 2010/08/24
500000000 : 2010/04/06
250000000 : 2009/11/20
100000000 : 2009/04/25
50000000 : 2008/09/13
25000000 : 2008/01/29
10000000 : 2007/08/29
やっぱ急激に増えてる
あなたが Element と思っているそれ、それは実は Element ではなくて、Element をラップした XPCNativeWrapper なんだYO!!
ということに尽きると思います。
所でそもそもLDRizeインスタンス取得できてないのにLDRizeできているのは不思議に思うかもしれない。実はldrize_cooperation.jsはLDRizeの普通の操作にそのインスタンスを利用するのではなく、単純にページドキュメントへキーイベントを発行することでLDRizeしていたからでした。
window.AutoPagerizeを全部sharedObject.AutoPagerizeに書き換えなくても、AutoPagerize側の準備が出来た時点(つまり、GM_AutoPagerizeLoadedイベントの発火直前)で、sharedObjectにもコピーを作ってやればいい
choice: function() {
for (var a = [{
min: 0,
max: 22716604
},
{
min: 22716605,
max: 67666062
},
{
min: 67666063,
max: 309781568
},
{
min: 309781569,
max: 2542121207
},
{
min: 2542121208,
max: 15080900593
},
{
min: 15080900593,
max: this.range.latest
}], b = [], c = 0, d = a.length; c < d; c++) if (! (a[c].max < this.range.oldest)) {
if (a[c].min < this.range.oldest) a[c].min = this.range.oldest;
b.push(a[c])
}
a = Math.round(Math.random() * (b.length - 1));
b = b[a];
return Math.round(Math.random() * (b.max - b.min) + 1) + b.min
}gistにコミットログを表示するGreasemonkey 『gist logs - ellaneous』 http://d.hatena.ne.jp/murky-satyr/20090508/gist_logs
— Twitter / azu (via saitamanodoruji)