Show
Ignore:
Timestamp:
08/18/08 00:12:37 (3 months ago)
Author:
poolmmjp
Message:

GM_xmlhttpRequestの際にCookieを明示的に渡すようにして、最近のFirefox+Greasemonkeyでも正しく動作するようにした。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/nicovideodownloader.user.js

    r9532 r17803  
    44// @include   http://www.nicovideo.jp/watch/* 
    55// @author    pool 
    6 // @version   0.5 
     6// @version   0.6 
    77// ==/UserScript== 
    88 
     
    3939                                        GM_xmlhttpRequest({ 
    4040                                                method: 'POST', 
    41                                                 headers: { 'Content-type': 'text/xml' }, 
     41                                                headers: { 'Content-type': 'text/xml', 'Cookie': document.cookie }, 
    4242                                                url: url, 
    4343                                                data: '<thread res_from="-500" version="20061206" thread="' + thread_id + '" />', 
     
    5858                        GM_xmlhttpRequest({ 
    5959                                method: 'GET', 
     60                                headers: { 'Cookie': document.cookie }, 
    6061                                url: 'http://www.nicovideo.jp/api/getflv?v=' + video_id, 
    6162                                onload: callback,