diff --git a/4chan_x.user.js b/4chan_x.user.js index d04e83047..347f7b149 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -790,6 +790,7 @@ num = (function() { switch (g.BOARD) { case 'b': + case 'vg': return 3; case 't': return 1; @@ -1523,7 +1524,7 @@ className: 'preview', draggable: true, href: 'javascript:;', - innerHTML: 'x' + innerHTML: '×' }); $('input', this.el).checked = this.spoiler; $.on(this.el, 'click', function() { @@ -1717,7 +1718,7 @@ qr.el = ui.dialog('qr', 'top:0;right:0;', '\
\ Quick Reply \ - x\ + ×\
\
\
\ @@ -2114,7 +2115,8 @@ className: 'reply dialog', innerHTML: '
\
\ - 4chan X | ' + VERSION + '\ + 4chan X\ + | ' + VERSION + '\ | Issues\
\
\ @@ -2643,7 +2645,7 @@ for (id in _ref) { props = _ref[id]; x = $.el('a', { - textContent: 'X', + textContent: '\u00d7', href: 'javascript:;' }); $.on(x, 'click', watcher.cb.x); @@ -3339,6 +3341,7 @@ case 'm': case 'tg': case 'u': + case 'vg': return "http://archive.foolz.us/" + href[3] + "/full_image/" + href[5]; } }, @@ -4006,13 +4009,13 @@ img[md5], img[md5] + img {\ /* revealed spoilers do not have height/width,\ this fixed "expanded" auto-gifs */\ img[md5] {\ - max-height: 126px;\ - max-width: 126px;\ -}\ -.op > a > img[md5] {\ max-height: 251px;\ max-width: 251px;\ }\ +td > .filesize > img[md5] {\ + max-height: 126px;\ + max-width: 126px;\ +}\ \ #qr, #qp, #updater, #stats, #ihover, #overlay, #navlinks {\ position: fixed;\ diff --git a/script.coffee b/script.coffee index 441c0583a..126fb46c0 100644 --- a/script.coffee +++ b/script.coffee @@ -661,7 +661,7 @@ expandThread = a.textContent = a.textContent.replace '-', '+' #goddamit moot num = switch g.BOARD - when 'b' then 3 + when 'b', 'vg' then 3 when 't' then 1 else 5 table = $.x "following::br[@clear]/preceding::table[#{num}]", a @@ -1227,7 +1227,7 @@ qr = className: 'preview' draggable: true href: 'javascript:;' - innerHTML: 'x' + innerHTML: '×' $('input', @el).checked = @spoiler $.on @el, 'click', => @select() $.on $('.remove', @el), 'click', (e) => @@ -1364,7 +1364,7 @@ qr = qr.el = ui.dialog 'qr', 'top:0;right:0;', '
Quick Reply - x + ×
@@ -1712,7 +1712,8 @@ options = className: 'reply dialog' innerHTML: '
- 4chan X | ' + VERSION + ' + 4chan X + | ' + VERSION + ' | Issues
@@ -2180,7 +2181,8 @@ watcher = for board of watched for id, props of watched[board] x = $.el 'a', - textContent: 'X' + # \u00d7 is × + textContent: '\u00d7' href: 'javascript:;' $.on x, 'click', watcher.cb.x link = $.el 'a', props @@ -2726,7 +2728,7 @@ redirect = # Do not use g.BOARD, the image url can originate from a cross-quote. return unless conf['404 Redirect'] switch href[3] - when 'a', 'jp', 'm', 'tg', 'u' + when 'a', 'jp', 'm', 'tg', 'u', 'vg' "http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}" thread: -> return unless conf['404 Redirect'] @@ -3337,13 +3339,13 @@ img[md5], img[md5] + img { /* revealed spoilers do not have height/width, this fixed "expanded" auto-gifs */ img[md5] { - max-height: 126px; - max-width: 126px; -} -.op > a > img[md5] { max-height: 251px; max-width: 251px; } +td > .filesize > img[md5] { + max-height: 126px; + max-width: 126px; +} #qr, #qp, #updater, #stats, #ihover, #overlay, #navlinks { position: fixed;