Changeset 24718
- Timestamp:
- 11/24/08 06:08:10 (4 years ago)
- Location:
- lang/javascript/vimperator-plugins/trunk
- Files:
-
- 2 modified
-
ldrize_cooperation_fetch_flv.js (modified) (2 diffs)
-
stella.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/ldrize_cooperation_fetch_flv.js
r24657 r24718 14 14 const nicoWatchEndPoint = 'http://www.nicovideo.jp/watch/'; 15 15 let videoId = url.match(/\w{2}\d+/)[0]; 16 let fileName = title.replace(/[?\\ \*\/:<>\|\"]/g, '_') + '.flv';16 let fileName = title.replace(/[?\\*\/:<>|"]/g, '_') + '.flv'; 17 17 18 18 httpGET( … … 89 89 arg.string || liberator.modules.buffer.URL, 90 90 function (responseText) { 91 let [, title] = responseText.match(/<title >(.*?)<\/title>/i);91 let [, title] = responseText.match(/<title(?:[ \t\r\n][^>]*)?>([^<]*)<\/title[ \t\n\r]*>/i); 92 92 liberator.log(title); 93 93 NiconicoFlvHandler(arg.string || liberator.modules.buffer.URL, title); -
lang/javascript/vimperator-plugins/trunk/stella.js
r24714 r24718 52 52 53 53 function capitalize (s) 54 s.replace(/^ ./, String.toUpperCase);54 s.replace(/^[a-z]/, String.toUpperCase); 55 55 56 56 … … 83 83 pause: '', 84 84 muted: '', 85 repeating: '' ,85 repeating: '' 86 86 }, 87 87 … … 161 161 pause: 'x', 162 162 muted: 'rwt', 163 repeating: 'rw' ,163 repeating: 'rw' 164 164 }, 165 165 … … 287 287 const ContextMenuVolume = []; 288 288 for (let i = 0; i <= 100; i += 10) 289 ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume:i}})289 ContextMenuVolume.push({name: 'setVolume', label: i + '%', attributes: {volume: i}}) 290 290 291 291 const ContextMenuTree = [
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)