diff options
author | anekos | 2010-05-04 10:41:48 +0000 |
---|---|---|
committer | anekos | 2010-05-04 10:41:48 +0000 |
commit | 1f4dd48d1abaefb5af36354487042732772eeb98 (patch) | |
tree | 4cb09ffe8ca4cee57ced4a3bf108569a2e420636 /stella.js | |
parent | a341991395a89fa503b4d37776a7ce774c74bb28 (diff) | |
download | vimperator-plugins-1f4dd48d1abaefb5af36354487042732772eeb98.tar.bz2 |
YouTube の PageInfo 修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37361 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r-- | stella.js | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -906,10 +906,19 @@ Thanks: get muted () this.player.isMuted(), set muted (value) ((value ? this.player.mute() : this.player.unMute()), value), - get pageinfo () [ - ['comment', U.toXML(U.xpathGet(this.xpath.comment).innerHTML)], - ['tags', U.toXML(U.xpathGet(this.xpath.tags).innerHTML)] - ], + get pageinfo () { + let doc = content.document; + return [ + [ + 'comment', + doc.querySelector('#watch-description > div > span > span > a').nextSibling.textContent.trim() + ], + [ + 'tags', + U.toXML(doc.querySelector('#watch-tags > div').innerHTML) + ] + ]; + }, get player () U.getElementByIdEx('movie_player'), |