This script has no discussions.
This script has no reviews.
Information
Latest version : 0.1.3 [2008-04-07]
Tested platform : Firefox 2.0.0.14 + Greasemonkey 0.7.20080121
Support page : GM: Play next video automatically on NicoVideo (ニコニコ動画)
Settings
Configurable items:- jumpCond - Function. Condition for judgment.
- pattern - RegExp. Regular expression for to get series sub-string.
- delay - Number. Delay time until jump to next video.
- interval(ready) - Number. Interval for the player is ready or not.
- interval(jump) - Number. Interval for the video finished or not.
/////////////// configurations ////////////////
var cfg = {
// condition for jump to next video
jumpCond: function(hist, vlen){
var sz = hist.length;
return 3 <= sz && vlen - hist[sz-1] < 3
&& hist[sz-1] === hist[sz-2] && hist[sz-2] === hist[sz-3];
},
// regular expression for to get series sub-string
pattern: /(part|その|第|No|\()[\.\s]?\d+[\s]?(回|話|\)?)/gi,
// delay time until jump to next video
delay: 2000,
interval: {
// interval for the player is ready or not
ready: 1000,
// interval for the video finished or not
jump: 300
}
}
///////////////////////////////////////////////Todo
- handling the case when it can't find next video.(showing search result)
- handling the case when the next video has deleted.(using isDeleted flag)
- Opera support(umm ... bothersome works)
Updates
- 2008-04-01 - 0.1.0 - first release
- 2008-04-01 - 0.1.1 - improved: cleaning code, configurable
- 2008-04-02 - 0.1.2 - improved: supported other patterns
- 2008-04-07 - 0.1.3 - improved: supported more title patterns





