Fix #63
This commit is contained in:
parent
39b4a3b1d2
commit
4bdd604f0f
2
LICENSE
2
LICENSE
@ -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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.1.16 - 2013-05-07
|
* 4chan X - Version 1.1.16 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -1613,7 +1613,10 @@
|
|||||||
a.setAttribute('data-only', m[1]);
|
a.setAttribute('data-only', m[1]);
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
if (m[1] === 'catalog') {
|
if (m[1] === 'catalog') {
|
||||||
a.href += 'catalog';
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
|
}
|
||||||
|
$.addClass(a, 'catalog');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (board === '@') {
|
if (board === '@') {
|
||||||
@ -7930,7 +7933,7 @@
|
|||||||
var a, board, path, _i, _len, _ref;
|
var a, board, path, _i, _len, _ref;
|
||||||
|
|
||||||
path = useCatalog ? 'catalog' : '';
|
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++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
a = _ref[_i];
|
a = _ref[_i];
|
||||||
board = a.pathname.split('/')[1];
|
board = a.pathname.split('/')[1];
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.1.16 - 2013-05-07
|
* 4chan X - Version 1.1.16 - 2013-05-08
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -1609,7 +1609,10 @@
|
|||||||
a.setAttribute('data-only', m[1]);
|
a.setAttribute('data-only', m[1]);
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
if (m[1] === 'catalog') {
|
if (m[1] === 'catalog') {
|
||||||
a.href += 'catalog';
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
|
}
|
||||||
|
$.addClass(a, 'catalog');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (board === '@') {
|
if (board === '@') {
|
||||||
@ -7951,7 +7954,7 @@
|
|||||||
var a, board, path, _i, _len, _ref;
|
var a, board, path, _i, _len, _ref;
|
||||||
|
|
||||||
path = useCatalog ? 'catalog' : '';
|
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++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
a = _ref[_i];
|
a = _ref[_i];
|
||||||
board = a.pathname.split('/')[1];
|
board = a.pathname.split('/')[1];
|
||||||
|
|||||||
@ -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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -1612,7 +1612,10 @@
|
|||||||
a.setAttribute('data-only', m[1]);
|
a.setAttribute('data-only', m[1]);
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
if (m[1] === 'catalog') {
|
if (m[1] === 'catalog') {
|
||||||
a.href += 'catalog';
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
|
}
|
||||||
|
$.addClass(a, 'catalog');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (board === '@') {
|
if (board === '@') {
|
||||||
@ -7935,7 +7938,7 @@
|
|||||||
var a, board, path, _i, _len, _ref;
|
var a, board, path, _i, _len, _ref;
|
||||||
|
|
||||||
path = useCatalog ? 'catalog' : '';
|
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++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
a = _ref[_i];
|
a = _ref[_i];
|
||||||
board = a.pathname.split('/')[1];
|
board = a.pathname.split('/')[1];
|
||||||
|
|||||||
@ -162,7 +162,9 @@ Header =
|
|||||||
if m = t.match /-(index|catalog)/
|
if m = t.match /-(index|catalog)/
|
||||||
a.setAttribute 'data-only', m[1]
|
a.setAttribute 'data-only', m[1]
|
||||||
a.href = "//boards.4chan.org/#{board}/"
|
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 '@'
|
$.addClass a, 'navSmall' if board is '@'
|
||||||
return a
|
return a
|
||||||
|
|||||||
@ -28,8 +28,7 @@ CatalogLinks =
|
|||||||
set: (useCatalog) ->
|
set: (useCatalog) ->
|
||||||
path = if useCatalog then 'catalog' else ''
|
path = if useCatalog then 'catalog' else ''
|
||||||
for a in $$ """
|
for a in $$ """
|
||||||
#board-list a[href*="boards.4chan.org"],
|
#board-list a[href*="boards.4chan.org"]:not(.catalog),
|
||||||
#boardNavDesktop a[href*="boards.4chan.org"],
|
|
||||||
#boardNavDesktopFoot a[href*="boards.4chan.org"]
|
#boardNavDesktopFoot a[href*="boards.4chan.org"]
|
||||||
"""
|
"""
|
||||||
board = a.pathname.split('/')[1]
|
board = a.pathname.split('/')[1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user