You could loop through all computed styles for that element and apply them in a style attribute, then remove the class name. Or perhaps parse the CSS rules and apply the styles from .xxx that way.
You can loop through all CSS properties like this:
var elem = $('#blabla')[0],list = {},props;
if (document.defaultView && document.defaultView.getComputedStyle) {
props = document.defaultView.getComputedStyle(elem, "");
$.each(props, function(i, prop) {
list[prop] = props.getPropertyValue(prop);
});
} else if (elem.currentStyle) { // IE
props = elem.currentStyle;
$.each(props, function(prop, val) {
list[prop] = val;
});
}
console.log(list) // the entire computed style object
If you do this you will also get all the inherited and computed styles, even from the browser CSS.