From 39392250da4b5a075418ac3d144dabd650b47957 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 28 Oct 2010 05:50:23 -0700 Subject: [PATCH] mirror options on bottom --- 4chan_x.coffee | 10 +++++++++- 4chan_x.js | 11 ++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index 14d251382..db35ca4a5 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -748,7 +748,15 @@ redirect = -> #main part 2... if navtopr = $ '#navtopr a' - text = navtopr.nextSibling + text = navtopr.nextSibling #css doesn't see text nodes + a = n 'a', + textContent: 'X' + className: 'pointer' + listener: ['click', options] + inBefore text, tn(' / ') + inBefore text, a + navbotr = $ '#navbotr a' + text = navbotr.nextSibling a = n 'a', textContent: 'X' className: 'pointer' diff --git a/4chan_x.js b/4chan_x.js index 5b4e4d995..426f28185 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1,5 +1,5 @@ (function() { - var $, $$, AEOS, BOARD, DAY, PAGENUM, REPLY, THREAD_ID, _i, _j, _len, _len2, _ref, _ref2, a, addTo, arr, as, autoWatch, autohide, b, board, callback, callbacks, clearHidden, close, config, cutoff, d, defaultSaucePrefix, delform, down, editSauce, el, expandComment, expandThread, favEmpty, favNormal, favicon, getConfig, getTime, head, hiddenReplies, hiddenThreads, hide, hideReply, hideThread, href, html, i, i1, id, iframe, iframeLoad, iframeLoop, img, inAfter, inBefore, input, inputs, l, l1, lastChecked, magic, n, navtopr, nodeInserted, nop, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, quickReply, r, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, show, showReply, showThread, slice, span, src, stopPropagation, submit, text, textContent, thread, threadF, threads, tn, up, watch, watchX, watched, watcher, watcherUpdate, x, xhrs; + var $, $$, AEOS, BOARD, DAY, PAGENUM, REPLY, THREAD_ID, _i, _j, _len, _len2, _ref, _ref2, a, addTo, arr, as, autoWatch, autohide, b, board, callback, callbacks, clearHidden, close, config, cutoff, d, defaultSaucePrefix, delform, down, editSauce, el, expandComment, expandThread, favEmpty, favNormal, favicon, getConfig, getTime, head, hiddenReplies, hiddenThreads, hide, hideReply, hideThread, href, html, i, i1, id, iframe, iframeLoad, iframeLoop, img, inAfter, inBefore, input, inputs, l, l1, lastChecked, magic, n, navbotr, navtopr, nodeInserted, nop, now, omitted, onloadComment, onloadThread, options, optionsClose, parseResponse, pathname, quickReply, r, recaptcha, recaptchaListener, recaptchaReload, redirect, remove, replace, replyNav, report, show, showReply, showThread, slice, span, src, stopPropagation, submit, text, textContent, thread, threadF, threads, tn, up, watch, watchX, watched, watcher, watcherUpdate, x, xhrs; var __slice = Array.prototype.slice, __hasProp = Object.prototype.hasOwnProperty; config = { 'Thread Hiding': true, @@ -866,6 +866,15 @@ }); inBefore(text, tn(' / ')); inBefore(text, a); + navbotr = $('#navbotr a'); + text = navbotr.nextSibling; + a = n('a', { + textContent: 'X', + className: 'pointer', + listener: ['click', options] + }); + inBefore(text, tn(' / ')); + inBefore(text, a); } else if (getConfig('404 Redirect') && d.title === '4chan - 404') { redirect(); } else {