■
お、なんかうまくいった...ような。
初スクリプトです。
動作補償はいたしかねます。
使用は自己責任でお願いします。
AMAZON商品をG-Toolで紹介する(Sleipnirスクリプト)
//この商品をG-Tools(http://www.goodpic.com/mt/aws/index.html)で紹介する var pnir; var document; var id; pnir = new ActiveXObject("Sleipnir.API"); id = pnir.GetDocumentID(pnir.ActiveIndex); document = pnir.GetDocumentObject(id); if (document == null) { pnir.MessageBox("Document オブジェクトを作成できません"); } else { var url = document.URL.substr(0,45); asin = url.substr(35,10); // pnir.MessageBox(asin); pnir.NewWindow('http://www.g-tools.com/foward_ecs4.php?region=jp&Keywords='+asin+'&SearchIndex=asin',true); document = null; } pnir = null;