fork download
  1. /*
  2. スクリプト初期化データ
  3. guid={D1276D6C-47EA-4417-94B5-B903EB14E9BA}
  4. caption=DLをキャンセル
  5. version=0
  6. hint=
  7. event=OnHttpResponse
  8. match=
  9. author=xor
  10. synchronize=0
  11. */
  12.  
  13. function OnHttpResponse(urlinfo,headers,item,folderdata,optiondata){
  14. /*
  15. HTTP(S)レスポンスイベント
  16. ※synchronize=1 以外の場合にIrvine.Api/UrlManager/Folder/Itemを使用しないでください
  17. ※ダイアログを呼びださないでください
  18. */
  19. if(headers.hasKey('Cf-Bgj')){
  20. urlinfo.Redirect = true;
  21. urlinfo.RedirectUrl = item.url;
  22. urlinfo.StatusCode = '302';
  23. println('cancel');
  24. }
  25. return true;
  26. }
  27.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty