diff --git a/js/options/user-css.js b/js/options/user-css.js index 22b005fa..bca98aa0 100644 --- a/js/options/user-css.js +++ b/js/options/user-css.js @@ -14,17 +14,13 @@ var tab = Options.add_tab("user-css", "css3", _("User CSS")); var textarea = $("").css({ - "font-size": 12, - position: "absolute", - top: 35, bottom: 35, - width: "calc(100% - 20px)", margin: 0, padding: "4px", border: "1px solid black", - left: 5, right: 5 + "height" : "85%", + "width" : "100%", + "font-size" : "9pt", + "font-family": "monospace", }).appendTo(tab.content); -var submit = $("").css({ - position: "absolute", - height: 25, bottom: 5, - width: "calc(100% - 10px)", - left: 5, right: 5 +var submit = $("").css({ + "width": "100%", }).click(function() { localStorage.user_css = textarea.val(); apply_css(); diff --git a/js/options/user-js.js b/js/options/user-js.js index 221ca5d9..4d792979 100644 --- a/js/options/user-js.js +++ b/js/options/user-js.js @@ -14,17 +14,13 @@ var tab = Options.add_tab("user-js", "code", _("User JS")); var textarea = $("").css({ - "font-size": 12, - position: "absolute", - top: 35, bottom: 35, - width: "calc(100% - 20px)", margin: 0, padding: "4px", border: "1px solid black", - left: 5, right: 5 + "height" : "85%", + "width" : "100%", + "font-size" : "9pt", + "font-family": "monospace", }).appendTo(tab.content); -var submit = $("").css({ - position: "absolute", - height: 25, bottom: 5, - width: "calc(100% - 10px)", - left: 5, right: 5 +var submit = $("").css({ + "width": "100%", }).click(function() { localStorage.user_js = textarea.val(); document.location.reload(); diff --git a/js/post-hover.js b/js/post-hover.js index 7be1c155..043a423b 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -77,10 +77,8 @@ onready(function(){ .appendTo(link.closest('div.post')); // shrink expanded images - newPost.find('div.file a[data-expanded="true"]').each(function() { - var thumb = $(this).find('img.post-image').attr('src'); - $(this).find('img.full-image').attr('src', thumb); - }); + newPost.find('div.file img.post-image').css({'display': '', 'opacity': ''}); + newPost.find('div.file img.full-image').remove(); // Highlight references to the current post if (link.hasClass('mentioned-'+id)) {