aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-05-18 13:43:14 +0000
committeranekos2010-05-18 13:43:14 +0000
commit3b46a7eb91a1821f4f4e3bd92473f55b93963e4d (patch)
treea27dcd094bae5fd13eadf1b36dca6b5eeab1eef1 /stella.js
parentf2c43814d365a4c5d3b7d5f0ecd2c060ee984b7c (diff)
downloadvimperator-plugins-3b46a7eb91a1821f4f4e3bd92473f55b93963e4d.tar.bz2
汚物は消毒
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37613 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/stella.js b/stella.js
index 16566e9..85c5244 100644
--- a/stella.js
+++ b/stella.js
@@ -837,19 +837,6 @@ Thanks:
YouTubePlayer.getIDfromURL = function (url) let ([_, r] = url.match(/[?;&]v=([-\w]+)/)) r;
YouTubePlayer.isVideoURL = function (url) /^https?:\/\/(www\.)?youtube\.com\/watch\?.+/(url);
- YouTubePlayer.OUTER_NODES = [
- 'old-masthead',
- 'watch-vid-title',
- 'watch-other-vids',
- 'old-footer',
- 'copyright',
- 'watch-main-area',
- 'watch-comments-stats',
- 'watch-video-response',
- 'chrome-promo',
- 'watch-video-quality-setting',
- ];
-
YouTubePlayer.prototype = {
__proto__: Player.prototype,
@@ -888,46 +875,6 @@ Thanks:
let (as = content.document.defaultView.wrappedJSObject.swfArgs)
('http://www.youtube.com/get_video?fmt=22&video_id=' + as.video_id + '&t=' + as.t),
- get fullscreen () this.storage.fullscreen,
- // FIXME - うまく元に戻らないことがある?
- set fullscreen (value) {
- function changeOuterNodes (hide) {
- return;
- const st = {display: 'none'};
- let f = hide ? function (node) U.storeStyle(node, st)
- : function (node) U.restoreStyle(node);
- YouTubePlayer.OUTER_NODES.forEach(
- function (id) {
- let (node = U.getElementById(id)) {
- node && f(node);
- }
- }
- );
- }
-
- this.last.screenMode = value ? 'fullscreen' : null;
- this.storage.fullscreen = value;
-
- // changeOuterNodes(value);
-
- let p = this.player;
- let r = p.getBoundingClientRect();
- if (this.fullscreen) {
- if (this.storage.r === undefined)
- this.storage.r = options['guioptions'].indexOf('r') >= 0;
- U.storeStyle(p, {
- marginLeft: -r.left + 'px',
- marginTop: -r.top + 'px',
- width: content.innerWidth + 'px',
- height: content.innerHeight + 'px',
- });
- p.setSize(content.innerWidth, content.innerHeight);
- } else {
- p.setSize(640, 385);
- U.restoreStyle(p);
- }
- },
-
get muted () this.player.isMuted(),
set muted (value) ((value ? this.player.mute() : this.player.unMute()), value),