This commit is contained in:
Jordan Bates 2013-05-08 03:18:23 -07:00
parent 39b4a3b1d2
commit 4bdd604f0f
6 changed files with 23 additions and 13 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.1.16 - 2013-05-07
* 4chan X - Version 1.1.16 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

View File

@ -18,7 +18,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan X - Version 1.1.16 - 2013-05-07
* 4chan X - Version 1.1.16 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -1613,7 +1613,10 @@
a.setAttribute('data-only', m[1]);
a.href = "//boards.4chan.org/" + board + "/";
if (m[1] === 'catalog') {
a.href += 'catalog';
if (m[1] === 'catalog') {
a.href += 'catalog';
}
$.addClass(a, 'catalog');
}
}
if (board === '@') {
@ -7930,7 +7933,7 @@
var a, board, path, _i, _len, _ref;
path = useCatalog ? 'catalog' : '';
_ref = $$("#board-list a[href*=\"boards.4chan.org\"],\n#boardNavDesktop a[href*=\"boards.4chan.org\"],\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
_ref = $$("#board-list a[href*=\"boards.4chan.org\"]:not(.catalog),\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
a = _ref[_i];
board = a.pathname.split('/')[1];

View File

@ -18,7 +18,7 @@
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
// ==/UserScript==
/*
* 4chan X - Version 1.1.16 - 2013-05-07
* 4chan X - Version 1.1.16 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -1609,7 +1609,10 @@
a.setAttribute('data-only', m[1]);
a.href = "//boards.4chan.org/" + board + "/";
if (m[1] === 'catalog') {
a.href += 'catalog';
if (m[1] === 'catalog') {
a.href += 'catalog';
}
$.addClass(a, 'catalog');
}
}
if (board === '@') {
@ -7951,7 +7954,7 @@
var a, board, path, _i, _len, _ref;
path = useCatalog ? 'catalog' : '';
_ref = $$("#board-list a[href*=\"boards.4chan.org\"],\n#boardNavDesktop a[href*=\"boards.4chan.org\"],\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
_ref = $$("#board-list a[href*=\"boards.4chan.org\"]:not(.catalog),\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
a = _ref[_i];
board = a.pathname.split('/')[1];

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.1.16 - 2013-05-07
* 4chan X - Version 1.1.16 - 2013-05-08
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
@ -1612,7 +1612,10 @@
a.setAttribute('data-only', m[1]);
a.href = "//boards.4chan.org/" + board + "/";
if (m[1] === 'catalog') {
a.href += 'catalog';
if (m[1] === 'catalog') {
a.href += 'catalog';
}
$.addClass(a, 'catalog');
}
}
if (board === '@') {
@ -7935,7 +7938,7 @@
var a, board, path, _i, _len, _ref;
path = useCatalog ? 'catalog' : '';
_ref = $$("#board-list a[href*=\"boards.4chan.org\"],\n#boardNavDesktop a[href*=\"boards.4chan.org\"],\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
_ref = $$("#board-list a[href*=\"boards.4chan.org\"]:not(.catalog),\n#boardNavDesktopFoot a[href*=\"boards.4chan.org\"]");
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
a = _ref[_i];
board = a.pathname.split('/')[1];

View File

@ -162,7 +162,9 @@ Header =
if m = t.match /-(index|catalog)/
a.setAttribute 'data-only', m[1]
a.href = "//boards.4chan.org/#{board}/"
a.href += 'catalog' if m[1] is 'catalog'
if m[1] is 'catalog'
a.href += 'catalog' if m[1] is 'catalog'
$.addClass a, 'catalog'
$.addClass a, 'navSmall' if board is '@'
return a

View File

@ -28,8 +28,7 @@ CatalogLinks =
set: (useCatalog) ->
path = if useCatalog then 'catalog' else ''
for a in $$ """
#board-list a[href*="boards.4chan.org"],
#boardNavDesktop a[href*="boards.4chan.org"],
#board-list a[href*="boards.4chan.org"]:not(.catalog),
#boardNavDesktopFoot a[href*="boards.4chan.org"]
"""
board = a.pathname.split('/')[1]