3 ms·
Slightly tweaked your script to display inline $("h2 a").each(function(){ var email = decodeURIComponent(this.href).slice(13).split("&subject=");
by amarraja 12y ago
Slightly tweaked your script to display inline
$("h2 a").each(function(){
var email = decodeURIComponent(this.href).slice(13).split("&subject=");
var subject = email[1];
var body = email[0].replace(/\n( )+/g, "\n");
var parent = $(this).parent("h2")
parent.after($("<div />").text(body));
parent.after($("<h4 />").text(subject));
});
- bramgg 12y agoThis is great! For anyone wondering, use this one.
- benbowdene 12y agoSO much easier reading it this way :D