From e9b5c3ff9767b06a9801f5f18658e9a8506d20b6 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 19 Dec 2010 23:39:48 -0800 Subject: [PATCH] only add padding when not in replies --- 4chan_x.coffee | 2 +- 4chan_x.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 8e43c8bb4..bb0b70fd0 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -968,7 +968,7 @@ GM_addStyle " cursor: pointer; } #{ - if getConfig 'Thread Navigation' + if g.REPLY and getConfig 'Thread Navigation' "body { padding-bottom: #{document.body.clientHeight}px; }" diff --git a/4chan_x.js b/4chan_x.js index cf737668b..58637e87a 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1182,7 +1182,7 @@ GM_setValue("hiddenReplies/" + g.BOARD + "/", JSON.stringify(g.hiddenReplies)); GM_setValue('lastChecked', now); } - GM_addStyle(" #watcher { position: absolute; } #watcher > div.move { text-decoration: underline; padding: 5px 5px 0 5px; } #watcher > div:last-child { padding: 0 5px 5px 5px; } span.error { color: red; } #qr.auto:not(:hover) form { visibility: collapse; } #qr span.error { position: absolute; bottom: 0; left: 0; } #qr { position: fixed; } #qr > div { text-align: right; } #qr > form > div, /* ad */ #qr td.rules { display: none; } #options { position: fixed; padding: 5px; text-align: right; } form[name=delform] a img { border: 0px; float: left; margin: 0px 20px; } span.navlinks { position: absolute; right: 5px; } span.navlinks > a { font-size: 16px; text-decoration: none; } .hide { display: none; } .pointer { cursor: pointer; } " + (getConfig('Thread Navigation') ? "body { padding-bottom: " + document.body.clientHeight + "px; }" : '') + ""); + GM_addStyle(" #watcher { position: absolute; } #watcher > div.move { text-decoration: underline; padding: 5px 5px 0 5px; } #watcher > div:last-child { padding: 0 5px 5px 5px; } span.error { color: red; } #qr.auto:not(:hover) form { visibility: collapse; } #qr span.error { position: absolute; bottom: 0; left: 0; } #qr { position: fixed; } #qr > div { text-align: right; } #qr > form > div, /* ad */ #qr td.rules { display: none; } #options { position: fixed; padding: 5px; text-align: right; } form[name=delform] a img { border: 0px; float: left; margin: 0px 20px; } span.navlinks { position: absolute; right: 5px; } span.navlinks > a { font-size: 16px; text-decoration: none; } .hide { display: none; } .pointer { cursor: pointer; } " + (g.REPLY && getConfig('Thread Navigation') ? "body { padding-bottom: " + document.body.clientHeight + "px; }" : '') + ""); if (navtopr = $('#navtopr a')) { text = navtopr.nextSibling; a = n('a', {