/*
* @title R送料
* @description 楽天の商品ページでこれを使うと、そのショップの送料料金表を別タブに表示できる。
* @include http://*
* @license MIT License
* @require jquery
* @private
*/
(function($) {
var shopname = location.pathname.split('/')[1];
var url = 'http://www.rakuten.co.jp/' + shopname + '/info2.html';
document.domain = 'rakuten.co.jp';
$(function() {
$('<iframe></iframe>')
.attr({
'src': url
})
.css({
'height': '300px',
'width': '100%'
})
.appendTo('body')
.on('load', function() {
$(this)
.contents()
.find('font:contains("配送について")')
.attr({
'id': 'shipping'
})
.end()
.end()
.attr({
'src': url + '#shipping'
});
});
});
})(jQuery);