fork download
  1. function checkURL(u,cx) {
  2. //cx.applyImageViewURLReplace = true;
  3. hr = v2c.createHttpRequest(u);
  4. hr.setRequestProperty('User-Agent','Mozilla/5.0 (compatible)');
  5. ret_str = hr.getContentsAsString();
  6. if(hr.responseCode != 200){
  7. return null;
  8. }else if(ret_str.match(/thumbnailUrl:\s+\'([^']+)/))
  9. {
  10. u = RegExp.$1.replace(/%3A/g, ":").replace(/%2F/g, "/");
  11. }
  12. cx.setRequestProperty('User-Agent','Mozilla/5.0 (compatible)');
  13. return u;
  14. }
Success #stdin #stdout 0.38s 381952KB
stdin
Standard input is empty
stdout
Standard output is empty