--- ldrfullfeedchanger.user.js 2007-11-12 01:25:09.000000000 +0900 +++ /home/yaa/work/greasemonkey/gm_scripts/ldrfullfeedchanger.user.js 2007-11-13 22:43:36.000000000 +0900 @@ -16,6 +16,11 @@ "s": '', "e": '' }, + "http://pc.watch.impress.co.jp/": { + "c": true, + "s": '', + "e": '' + }, "http://www.itmedia.co.jp": { "c": true, "s": '', @@ -56,7 +61,19 @@ res.match(startExp); res = RegExp.rightContext; res.match(endExp); - w.FULLFEED.target[link].innerHTML = RegExp.leftContext; + var mes_body = RegExp.leftContext; + mes_body = mes_body.replace(/(<[^<>]*img [^<>]*src=")([^"]+)("[^<>]*>)/gi, function(match, l, src, r){ + if (src.match(/^https?:\/\//)) { + return l+src+r; + } else if (src.match(/^\//)) { + var link_top = link.replace(/^(https?:\/\/[^\/]+)\/.*$/, '$1'); + return l+link_top+src+r; + } else { + var link_base = link.replace(/\/[^/]+$/, '/'); + return l+link_base+src+r; + } + }); + w.FULLFEED.target[link].innerHTML = mes_body; }}); }; w.channel_widgets.add('full_feed', function(feed) {