aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2012-03-17 21:03:39 +0900
committeranekos2012-03-17 21:03:39 +0900
commit0110a941b97ebb4513dfa79ac54de1a7e4f5b26c (patch)
treea43ee7cebcc2872cdfacb8a89b1021e7c449b8e0
parent5313dab7c0291038cbd4e6c267d66853db063cd4 (diff)
downloadvimperator-plugins-0110a941b97ebb4513dfa79ac54de1a7e4f5b26c.tar.bz2
-rw-r--r--stella.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/stella.js b/stella.js
index f3c9dbd..7a4dc9e 100644
--- a/stella.js
+++ b/stella.js
@@ -1260,6 +1260,7 @@ Thanks:
Player.apply(this, arguments);
}
+ NicoPlayer.SIZE_FULL = 'full';
NicoPlayer.SIZE_LARGE = 'fit';
NicoPlayer.SIZE_NORMAL = 'normal';
@@ -1326,8 +1327,11 @@ Thanks:
get fileExtension () '.flv',
- get fullscreen () this.large,
- set fullscreen (value) (this.large = value),
+ get fullscreen () this.player.ext_getVideoSize() === NicoPlayer.SIZE_FULL,
+ set fullscreen (value) {
+ this.player.ext_setVideoSize(value ? NicoPlayer.SIZE_FULL : NicoPlayer.SIZE_NORMAL);
+ return this.fullscreen;
+ },
get id ()
let (m = U.currentURL.match(/\/(?:watch|playlist\/mylist)\/([a-z\d]+)/))