diff --git a/4chan_x.js b/4chan_x.js
index 50ae2b6b0..09176eaef 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -1970,14 +1970,16 @@
};
threadStats = {
init: function() {
- var html;
+ var dialog, html;
threadStats.replies = 0;
threadStats.images = $('.op img[md5]') ? 1 : 0;
html = "
Replies: " + threadStats.replies + " Images: " + threadStats.images + "
";
- $.append(d.body, ui.dialog('stats', {
+ dialog = ui.dialog('stats', {
bottom: '0px',
left: '0px'
- }, html));
+ }, html);
+ dialog.className = 'dialog';
+ $.append(d.body, dialog);
return g.callbacks.push(threadStats.node);
},
node: function(root) {
@@ -2631,6 +2633,7 @@
}\
\
#stats {\
+ border: none;\
position: fixed;\
}\
\
diff --git a/script.coffee b/script.coffee
index 169d66d04..50a5ff30b 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1550,7 +1550,9 @@ threadStats =
threadStats.replies = 0
threadStats.images = if $ '.op img[md5]' then 1 else 0
html = "Replies: #{threadStats.replies} Images: #{threadStats.images}
"
- $.append d.body, (ui.dialog 'stats', bottom: '0px', left: '0px', html)
+ dialog = ui.dialog 'stats', bottom: '0px', left: '0px', html
+ dialog.className = 'dialog'
+ $.append d.body, dialog
g.callbacks.push threadStats.node
node: (root) ->
return if root.className
@@ -2065,6 +2067,7 @@ main =
}
#stats {
+ border: none;
position: fixed;
}