Build
This commit is contained in:
parent
1771bcffde
commit
c5cdbd62df
@ -85,6 +85,7 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
concurrent:
|
concurrent:
|
||||||
build: [
|
build: [
|
||||||
|
'concat:license'
|
||||||
'build-crx'
|
'build-crx'
|
||||||
'build-userjs'
|
'build-userjs'
|
||||||
'build-userscript'
|
'build-userscript'
|
||||||
@ -152,7 +153,6 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
grunt.registerTask 'build', [
|
grunt.registerTask 'build', [
|
||||||
'concurrent:build'
|
'concurrent:build'
|
||||||
'concat:license'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
grunt.registerTask 'build-crx', [
|
grunt.registerTask 'build-crx', [
|
||||||
|
|||||||
@ -1583,26 +1583,15 @@
|
|||||||
a = as[_i];
|
a = as[_i];
|
||||||
if (a.textContent === board) {
|
if (a.textContent === board) {
|
||||||
a = a.cloneNode(true);
|
a = a.cloneNode(true);
|
||||||
if (/-title/.test(t)) {
|
a.textContent = /-title/.test(t) || /-replace/.test(t) && $.hasClass(a, 'current') ? a.title : /-full/.test(t) ? "/" + board + "/ - " + a.title : (m = t.match(/-text:"(.+)"/)) ? m[1] : a.textContent;
|
||||||
a.textContent = a.title;
|
if (m = t.match(/-(index|catalog)/)) {
|
||||||
} else if (/-replace/.test(t)) {
|
a.setAttribute('data-only', m[1]);
|
||||||
if ($.hasClass(a, 'current')) {
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
a.textContent = a.title;
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
}
|
}
|
||||||
} else if (/-full/.test(t)) {
|
}
|
||||||
a.textContent = "/" + board + "/ - " + a.title;
|
if (board === '@') {
|
||||||
} else if (/-(index|catalog|text)/.test(t)) {
|
|
||||||
if (m = t.match(/-(index|catalog)/)) {
|
|
||||||
a.setAttribute('data-only', m[1]);
|
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
|
||||||
if (m[1] === 'catalog') {
|
|
||||||
a.href += 'catalog';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (m = t.match(/-text:"(.+)"/)) {
|
|
||||||
a.textContent = m[1];
|
|
||||||
}
|
|
||||||
} else if (board === '@') {
|
|
||||||
$.addClass(a, 'navSmall');
|
$.addClass(a, 'navSmall');
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
@ -7420,6 +7409,10 @@
|
|||||||
case 'hr':
|
case 'hr':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
||||||
|
case 'c':
|
||||||
|
case 'w':
|
||||||
|
case 'wg':
|
||||||
|
return "//archive.nyafuu.org/" + boardID + "/full_image/" + filename;
|
||||||
case 'ck':
|
case 'ck':
|
||||||
case 'fa':
|
case 'fa':
|
||||||
case 'lit':
|
case 'lit':
|
||||||
@ -7428,7 +7421,6 @@
|
|||||||
case 'cgl':
|
case 'cgl':
|
||||||
case 'g':
|
case 'g':
|
||||||
case 'mu':
|
case 'mu':
|
||||||
case 'w':
|
|
||||||
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
||||||
case 'an':
|
case 'an':
|
||||||
case 'k':
|
case 'k':
|
||||||
@ -7504,6 +7496,11 @@
|
|||||||
boards: ['hr', 'tg', 'tv', 'x'],
|
boards: ['hr', 'tg', 'tv', 'x'],
|
||||||
base: 'foolfuuka'
|
base: 'foolfuuka'
|
||||||
},
|
},
|
||||||
|
'NyaFuu': {
|
||||||
|
base: '//archive.nyafuu.org',
|
||||||
|
boards: ['c', 'w', 'wg'],
|
||||||
|
type: 'foolfuuka'
|
||||||
|
},
|
||||||
'Warosu': {
|
'Warosu': {
|
||||||
base: '//fuuka.warosu.org',
|
base: '//fuuka.warosu.org',
|
||||||
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
||||||
@ -7528,11 +7525,6 @@
|
|||||||
base: '//www.cliché.net/4chan/cgi-board.pl',
|
base: '//www.cliché.net/4chan/cgi-board.pl',
|
||||||
boards: ['e'],
|
boards: ['e'],
|
||||||
type: 'fuuka'
|
type: 'fuuka'
|
||||||
},
|
|
||||||
'NyaFuu': {
|
|
||||||
base: '//archive.nyafuu.org',
|
|
||||||
boards: ['c', 'w'],
|
|
||||||
type: 'fuuka'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
path: function(base, archiver, data) {
|
path: function(base, archiver, data) {
|
||||||
|
|||||||
@ -1579,26 +1579,15 @@
|
|||||||
a = as[_i];
|
a = as[_i];
|
||||||
if (a.textContent === board) {
|
if (a.textContent === board) {
|
||||||
a = a.cloneNode(true);
|
a = a.cloneNode(true);
|
||||||
if (/-title/.test(t)) {
|
a.textContent = /-title/.test(t) || /-replace/.test(t) && $.hasClass(a, 'current') ? a.title : /-full/.test(t) ? "/" + board + "/ - " + a.title : (m = t.match(/-text:"(.+)"/)) ? m[1] : a.textContent;
|
||||||
a.textContent = a.title;
|
if (m = t.match(/-(index|catalog)/)) {
|
||||||
} else if (/-replace/.test(t)) {
|
a.setAttribute('data-only', m[1]);
|
||||||
if ($.hasClass(a, 'current')) {
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
a.textContent = a.title;
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
}
|
}
|
||||||
} else if (/-full/.test(t)) {
|
}
|
||||||
a.textContent = "/" + board + "/ - " + a.title;
|
if (board === '@') {
|
||||||
} else if (/-(index|catalog|text)/.test(t)) {
|
|
||||||
if (m = t.match(/-(index|catalog)/)) {
|
|
||||||
a.setAttribute('data-only', m[1]);
|
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
|
||||||
if (m[1] === 'catalog') {
|
|
||||||
a.href += 'catalog';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (m = t.match(/-text:"(.+)"/)) {
|
|
||||||
a.textContent = m[1];
|
|
||||||
}
|
|
||||||
} else if (board === '@') {
|
|
||||||
$.addClass(a, 'navSmall');
|
$.addClass(a, 'navSmall');
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
@ -7441,6 +7430,10 @@
|
|||||||
case 'hr':
|
case 'hr':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
||||||
|
case 'c':
|
||||||
|
case 'w':
|
||||||
|
case 'wg':
|
||||||
|
return "//archive.nyafuu.org/" + boardID + "/full_image/" + filename;
|
||||||
case 'ck':
|
case 'ck':
|
||||||
case 'fa':
|
case 'fa':
|
||||||
case 'lit':
|
case 'lit':
|
||||||
@ -7449,7 +7442,6 @@
|
|||||||
case 'cgl':
|
case 'cgl':
|
||||||
case 'g':
|
case 'g':
|
||||||
case 'mu':
|
case 'mu':
|
||||||
case 'w':
|
|
||||||
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
||||||
case 'an':
|
case 'an':
|
||||||
case 'k':
|
case 'k':
|
||||||
@ -7525,6 +7517,11 @@
|
|||||||
boards: ['hr', 'tg', 'tv', 'x'],
|
boards: ['hr', 'tg', 'tv', 'x'],
|
||||||
base: 'foolfuuka'
|
base: 'foolfuuka'
|
||||||
},
|
},
|
||||||
|
'NyaFuu': {
|
||||||
|
base: '//archive.nyafuu.org',
|
||||||
|
boards: ['c', 'w', 'wg'],
|
||||||
|
type: 'foolfuuka'
|
||||||
|
},
|
||||||
'Warosu': {
|
'Warosu': {
|
||||||
base: '//fuuka.warosu.org',
|
base: '//fuuka.warosu.org',
|
||||||
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
||||||
@ -7549,11 +7546,6 @@
|
|||||||
base: '//www.cliché.net/4chan/cgi-board.pl',
|
base: '//www.cliché.net/4chan/cgi-board.pl',
|
||||||
boards: ['e'],
|
boards: ['e'],
|
||||||
type: 'fuuka'
|
type: 'fuuka'
|
||||||
},
|
|
||||||
'NyaFuu': {
|
|
||||||
base: '//archive.nyafuu.org',
|
|
||||||
boards: ['c', 'w'],
|
|
||||||
type: 'fuuka'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
path: function(base, archiver, data) {
|
path: function(base, archiver, data) {
|
||||||
|
|||||||
@ -793,7 +793,7 @@
|
|||||||
return localItems = {};
|
return localItems = {};
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
err = _error;
|
err = _error;
|
||||||
return c.error(err);
|
return c.error(err.stack);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return function(key, val) {
|
return function(key, val) {
|
||||||
@ -1582,26 +1582,15 @@
|
|||||||
a = as[_i];
|
a = as[_i];
|
||||||
if (a.textContent === board) {
|
if (a.textContent === board) {
|
||||||
a = a.cloneNode(true);
|
a = a.cloneNode(true);
|
||||||
if (/-title/.test(t)) {
|
a.textContent = /-title/.test(t) || /-replace/.test(t) && $.hasClass(a, 'current') ? a.title : /-full/.test(t) ? "/" + board + "/ - " + a.title : (m = t.match(/-text:"(.+)"/)) ? m[1] : a.textContent;
|
||||||
a.textContent = a.title;
|
if (m = t.match(/-(index|catalog)/)) {
|
||||||
} else if (/-replace/.test(t)) {
|
a.setAttribute('data-only', m[1]);
|
||||||
if ($.hasClass(a, 'current')) {
|
a.href = "//boards.4chan.org/" + board + "/";
|
||||||
a.textContent = a.title;
|
if (m[1] === 'catalog') {
|
||||||
|
a.href += 'catalog';
|
||||||
}
|
}
|
||||||
} else if (/-full/.test(t)) {
|
}
|
||||||
a.textContent = "/" + board + "/ - " + a.title;
|
if (board === '@') {
|
||||||
} else if (/-(index|catalog|text)/.test(t)) {
|
|
||||||
if (m = t.match(/-(index|catalog)/)) {
|
|
||||||
a.setAttribute('data-only', m[1]);
|
|
||||||
a.href = "//boards.4chan.org/" + board + "/";
|
|
||||||
if (m[1] === 'catalog') {
|
|
||||||
a.href += 'catalog';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (m = t.match(/-text:"(.+)"/)) {
|
|
||||||
a.textContent = m[1];
|
|
||||||
}
|
|
||||||
} else if (board === '@') {
|
|
||||||
$.addClass(a, 'navSmall');
|
$.addClass(a, 'navSmall');
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
@ -7425,6 +7414,10 @@
|
|||||||
case 'hr':
|
case 'hr':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
return "http://archive.4plebs.org/" + boardID + "/full_image/" + filename;
|
||||||
|
case 'c':
|
||||||
|
case 'w':
|
||||||
|
case 'wg':
|
||||||
|
return "//archive.nyafuu.org/" + boardID + "/full_image/" + filename;
|
||||||
case 'ck':
|
case 'ck':
|
||||||
case 'fa':
|
case 'fa':
|
||||||
case 'lit':
|
case 'lit':
|
||||||
@ -7433,7 +7426,6 @@
|
|||||||
case 'cgl':
|
case 'cgl':
|
||||||
case 'g':
|
case 'g':
|
||||||
case 'mu':
|
case 'mu':
|
||||||
case 'w':
|
|
||||||
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
return "//rbt.asia/" + boardID + "/full_image/" + filename;
|
||||||
case 'an':
|
case 'an':
|
||||||
case 'k':
|
case 'k':
|
||||||
@ -7509,6 +7501,11 @@
|
|||||||
boards: ['hr', 'tg', 'tv', 'x'],
|
boards: ['hr', 'tg', 'tv', 'x'],
|
||||||
base: 'foolfuuka'
|
base: 'foolfuuka'
|
||||||
},
|
},
|
||||||
|
'NyaFuu': {
|
||||||
|
base: '//archive.nyafuu.org',
|
||||||
|
boards: ['c', 'w', 'wg'],
|
||||||
|
type: 'foolfuuka'
|
||||||
|
},
|
||||||
'Warosu': {
|
'Warosu': {
|
||||||
base: '//fuuka.warosu.org',
|
base: '//fuuka.warosu.org',
|
||||||
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
boards: ['cgl', 'ck', 'fa', 'jp', 'lit', 's4s', 'q', 'tg'],
|
||||||
@ -7533,11 +7530,6 @@
|
|||||||
base: '//www.cliché.net/4chan/cgi-board.pl',
|
base: '//www.cliché.net/4chan/cgi-board.pl',
|
||||||
boards: ['e'],
|
boards: ['e'],
|
||||||
type: 'fuuka'
|
type: 'fuuka'
|
||||||
},
|
|
||||||
'NyaFuu': {
|
|
||||||
base: '//archive.nyafuu.org',
|
|
||||||
boards: ['c', 'w'],
|
|
||||||
type: 'fuuka'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
path: function(base, archiver, data) {
|
path: function(base, archiver, data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user