<script>
$(document).ready(function(){
// check admin block and apply settings
// important for responsive sites use this class .page-admin-build-block-list-aw-responsive
if($('.page-admin-build-block').length > 0){
console.log('admin block page');
}else{
console.log('not admin block page');
// style all register logos
$('body :not(script,sup)').contents().filter(function() {
return this.nodeType === 3;
}).replaceWith(function() {
return this.nodeValue.replace(/[™®©]/g, '<sup>$&</sup>');
});
}
});
</script>
// Wrapped in an if statement because it seems to break the blocks page otherwise.
Style:
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}