diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index 21f24ab0c..05d4ab7fa 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -255,6 +255,14 @@ Danbooru.Note = {
text = text.replace(/<\/tn>/g, '
');
text = text.replace(/\n/g, '
');
$note_body.html(text);
+
+ $note_body.css("background-color", "");
+ if ($note_body.contents(":not(br)").length === 1) {
+ color = $note_body.children().first().css("background-color");
+ if (color !== "transparent") {
+ $note_body.css("background-color", color);
+ }
+ }
},
bind_events: function($note_body) {