From eae4a2605adb1f7b3617ee1cca882925c9092988 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 20 Dec 2010 09:36:33 -0800 Subject: [PATCH] git rid of body padding... for now --- 4chan_x.coffee | 8 +------- 4chan_x.js | 10 +++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index dbbbc112b..c7cc118d0 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -912,7 +912,7 @@ if lastChecked < now - 1*DAY GM_setValue("hiddenReplies/#{g.BOARD}/", JSON.stringify(g.hiddenReplies)) GM_setValue('lastChecked', now) -css = ' +GM_addStyle ' #watcher { position: absolute; } @@ -969,12 +969,6 @@ css = ' cursor: pointer; } ' -if not g.REPLY and getConfig 'Thread Navigation' - css += " - body { - padding-bottom: #{document.body.clientHeight}px; - }" -GM_addStyle css if navtopr = $ '#navtopr a' text = navtopr.nextSibling #css doesn't see text nodes diff --git a/4chan_x.js b/4chan_x.js index 69d9195ae..689371b24 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1,5 +1,5 @@ (function() { - var $, $$, AEOS, DAY, a, addTo, arr, as, autoWatch, autohide, b, board, callback, clearHidden, closeQR, config, cooldown, css, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, imageToggle, img, inAfter, inBefore, input, inputs, keyModeInsert, keyModeNormal, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, scroll, show, showReply, showThread, slice, span, src, start, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _fn, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4; + var $, $$, AEOS, DAY, a, addTo, arr, as, autoWatch, autohide, b, board, callback, clearHidden, closeQR, config, cooldown, cutoff, d, delform, down, editSauce, el, expand, expandComment, expandThread, formSubmit, g, getConfig, getThread, getTime, hide, hideReply, hideThread, href, html, i, id, iframe, iframeLoad, imageClick, imageExpandClick, imageFull, imageThumb, imageToggle, img, inAfter, inBefore, input, inputs, keyModeInsert, keyModeNormal, keydown, keypress, l1, lastChecked, m, n, navbotr, navtopr, nodeInserted, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, qrListener, qrText, quickReply, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, scroll, show, showReply, showThread, slice, span, src, start, stopPropagation, temp, text, textContent, thread, threadF, threads, tn, tzOffset, up, watch, watchX, watcher, watcherUpdate, x, zeroPad, _, _base, _fn, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _len6, _m, _ref, _ref2, _ref3, _ref4; var __slice = Array.prototype.slice, __indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (this[i] === item) return i; @@ -1183,7 +1183,7 @@ GM_setValue("hiddenReplies/" + g.BOARD + "/", JSON.stringify(g.hiddenReplies)); GM_setValue('lastChecked', now); } - css = '\ + GM_addStyle('\ #watcher {\ position: absolute;\ }\ @@ -1239,11 +1239,7 @@ .pointer {\ cursor: pointer;\ }\ -'; - if (!g.REPLY && getConfig('Thread Navigation')) { - css += " body { padding-bottom: " + document.body.clientHeight + "px; }"; - } - GM_addStyle(css); +'); if (navtopr = $('#navtopr a')) { text = navtopr.nextSibling; a = n('a', {