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. if(headers.hasKey('cf-polished')){
  21. if(headers['cf-polished']== 'err=already_optimized'){
  22. println('hehehe');
  23. return true;
  24. }
  25. }
  26. urlinfo.Redirect = true;
  27. urlinfo.RedirectUrl = item.url;
  28. urlinfo.StatusCode = '555';
  29. println('cancel');
  30. }
  31. return true;
  32. }
  33.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty