diff options
author | drry | 2008-12-07 23:20:51 +0000 |
---|---|---|
committer | drry | 2008-12-07 23:20:51 +0000 |
commit | fc00c295acf654daf32fc7c36323d14437f60151 (patch) | |
tree | 7aeacd560e8c5218c9bac7639cfe41eaf2f015a3 | |
parent | cc6d860ff13ec4ba88cd29b4182076c24539a99d (diff) | |
download | vimperator-plugins-fc00c295acf654daf32fc7c36323d14437f60151.tar.bz2 |
* fixed regexes.
* et cetera.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26087 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | stella.js | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -299,7 +299,7 @@ var PLUGIN_INFO = try{ result = this[name].map(function (it) ({type: Player[type], value: it})).concat(result); } catch (e){ - liberator.log(name) + liberator.log(name); } } } @@ -351,7 +351,7 @@ var PLUGIN_INFO = seek: function (v) { v = parseInt(v, 10); if (v < 0) - v = this.totalTime + v; + v = this.totalTime + v; return this.currentTime = Math.min(Math.max(v, 0), this.totalTime); }, @@ -414,7 +414,7 @@ var PLUGIN_INFO = set fullscreen () { this.player.__stella_fullscreen = !this.player.__stella_fullscreen; if (this.fullscreen) { - liberator.log('full') + liberator.log('full'); storeStyle(this.player, { position: 'fixed', left: '0px', @@ -423,7 +423,7 @@ var PLUGIN_INFO = height: content.innerHeight + 'px' }); } else { - liberator.log('normal') + liberator.log('normal'); restoreStyle(this.player); } }, @@ -641,7 +641,7 @@ var PLUGIN_INFO = video[c.nodeName] = c.textContent; videos.push({ title: video.title, - id: video.url.replace(/^.+watch\//, ''), + id: video.url.replace(/^.+?\/watch\//, ''), raw: video }); } @@ -722,7 +722,7 @@ var PLUGIN_INFO = const ContextMenuVolume = []; for (let i = 0; i <= 100; i += 10) - ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume: i}}) + ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume: i}}); const ContextMenuTree = [ 'play', @@ -808,7 +808,7 @@ var PLUGIN_INFO = onSecurityChange: function(webProgress, request, state) undefined, uninstall: function () { getBrowser().removeProgressListener(this); - } + }, }; // }}} @@ -876,7 +876,7 @@ var PLUGIN_INFO = function add (cmdName, funcS, funcB) { commands.addUserCommand( ['st' + cmdName], - cmdName.replace(/[\[\]]/g, '') + ' - Stella', + cmdName.replace(/[\[\]]+/g, '') + ' - Stella', (funcS instanceof Function) ? funcS : function (arg, bang) { @@ -943,7 +943,7 @@ var PLUGIN_INFO = return [rel.value.url, rel.value.title]; } }); - } + }, }, true ); @@ -1125,8 +1125,8 @@ var PLUGIN_INFO = let install = function () { let stella = liberator.plugins.stella = new Stella(); stella.addUserCommands(); - liberator.log('Stella: installed.') - } + liberator.log('Stella: installed.'); + }; // すでにインストール済みの場合は、一度ファイナライズする // (デバッグ時に前のパネルが残ってしまうため) |