tell application "Safari"
tell document 1
do JavaScript "
//要素IDの削除
var remove = ['acWrHeader','abth_tp','booth2_closedinfo','abth_lft','abth_rght','abth_mdl']
for (i = 0; i < remove.length; i++) {
if(document.getElementById(remove[i])){
document.getElementById(remove[i]).innerHTML=''
}
}
//要素imageinfoサムネイルCLASS = の削除
document.getElementById('imageinfo').getElementsByClassName('pts01')[0].innerHTML='';
"
do JavaScript "
var imagesrc = new Array();
//imageinfo
var imageinfo_pts02_imgs = document.getElementById('imageinfo').getElementsByClassName('pts02')[0].getElementsByTagName('img');
for (i = 0; i < imageinfo_pts02_imgs.length; i++) {
img = imageinfo_pts02_imgs[i];
imagesrc.push(img.src);
}
//imageinfo
var adoc_imgs = document.getElementById('adoc').getElementsByTagName('img');
for (i = 0; i < adoc_imgs.length; i++) {
img = adoc_imgs[i];
imagesrc.push(img.src);
}
"
set imagesrcs to do JavaScript "imagesrc"
return imagesrcs
end tell
end tell