Skip to content

Instantly share code, notes, and snippets.

@tie-rack
tie-rack / xkcd.com.js
Created March 28, 2011 19:13
dotjs for adding the title text of XKCD comics on the page (no more tooltip for me!)
var comic = $("div.s img[title]");
var titleP = $("<p></p>");
titleP.css({"font-variant": "normal",
"border": "1px solid yellow",
"padding": "1em",
"background-color": "#FFFFCC"});
titleP.text(comic.attr("title"));
comic.after(titleP);