Update nyafuu
This commit is contained in:
commit
1771bcffde
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.1.3 - 2013-04-28
|
* 4chan X - Version 1.1.3 - 2013-04-29
|
||||||
*
|
*
|
||||||
* 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.3 - 2013-04-28
|
* 4chan X - Version 1.1.3 - 2013-04-29
|
||||||
*
|
*
|
||||||
* 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.3 - 2013-04-28
|
* 4chan X - Version 1.1.3 - 2013-04-29
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.1.3 - 2013-04-28
|
* 4chan X - Version 1.1.3 - 2013-04-29
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
|||||||
@ -17,9 +17,11 @@ Redirect =
|
|||||||
"//archive.thedarkcave.org/#{boardID}/full_image/#{filename}"
|
"//archive.thedarkcave.org/#{boardID}/full_image/#{filename}"
|
||||||
when 'hr', 'tv'
|
when 'hr', 'tv'
|
||||||
"http://archive.4plebs.org/#{boardID}/full_image/#{filename}"
|
"http://archive.4plebs.org/#{boardID}/full_image/#{filename}"
|
||||||
|
when 'c', 'w', 'wg'
|
||||||
|
"//archive.nyafuu.org/#{boardID}/full_image/#{filename}"
|
||||||
when 'ck', 'fa', 'lit', 's4s'
|
when 'ck', 'fa', 'lit', 's4s'
|
||||||
"//fuuka.warosu.org/#{boardID}/full_image/#{filename}"
|
"//fuuka.warosu.org/#{boardID}/full_image/#{filename}"
|
||||||
when 'cgl', 'g', 'mu', 'w'
|
when 'cgl', 'g', 'mu'
|
||||||
"//rbt.asia/#{boardID}/full_image/#{filename}"
|
"//rbt.asia/#{boardID}/full_image/#{filename}"
|
||||||
when 'an', 'k', 'toy', 'x'
|
when 'an', 'k', 'toy', 'x'
|
||||||
"http://archive.heinessen.com/#{boardID}/full_image/#{filename}"
|
"http://archive.heinessen.com/#{boardID}/full_image/#{filename}"
|
||||||
@ -75,6 +77,10 @@ Redirect =
|
|||||||
base: 'http://archive.4plebs.org'
|
base: 'http://archive.4plebs.org'
|
||||||
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']
|
||||||
@ -95,10 +101,6 @@ Redirect =
|
|||||||
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: (base, archiver, data) ->
|
path: (base, archiver, data) ->
|
||||||
if data.isSearch
|
if data.isSearch
|
||||||
|
|||||||
@ -139,22 +139,22 @@ Header =
|
|||||||
for a in as
|
for a in as
|
||||||
if a.textContent is board
|
if a.textContent is board
|
||||||
a = a.cloneNode true
|
a = a.cloneNode true
|
||||||
if /-title/.test t
|
|
||||||
a.textContent = a.title
|
a.textContent = if /-title/.test(t) or /-replace/.test(t) and $.hasClass a, 'current'
|
||||||
else if /-replace/.test t
|
a.title
|
||||||
if $.hasClass a, 'current'
|
|
||||||
a.textContent = a.title
|
|
||||||
else if /-full/.test t
|
else if /-full/.test t
|
||||||
a.textContent = "/#{board}/ - #{a.title}"
|
"/#{board}/ - #{a.title}"
|
||||||
else if /-(index|catalog|text)/.test t
|
else if m = t.match /-text:"(.+)"/
|
||||||
if m = t.match /-(index|catalog)/
|
m[1]
|
||||||
a.setAttribute 'data-only', m[1]
|
else
|
||||||
a.href = "//boards.4chan.org/#{board}/"
|
a.textContent
|
||||||
a.href += 'catalog' if m[1] is 'catalog'
|
|
||||||
if m = t.match /-text:"(.+)"/
|
if m = t.match /-(index|catalog)/
|
||||||
a.textContent = m[1]
|
a.setAttribute 'data-only', m[1]
|
||||||
else if board is '@'
|
a.href = "//boards.4chan.org/#{board}/"
|
||||||
$.addClass a, 'navSmall'
|
a.href += 'catalog' if m[1] is 'catalog'
|
||||||
|
|
||||||
|
$.addClass a, 'navSmall' if board is '@'
|
||||||
return a
|
return a
|
||||||
$.tn t
|
$.tn t
|
||||||
$.add list, nodes
|
$.add list, nodes
|
||||||
|
|||||||
@ -373,7 +373,7 @@ $.set = do ->
|
|||||||
items = {}
|
items = {}
|
||||||
localItems = {}
|
localItems = {}
|
||||||
catch err
|
catch err
|
||||||
c.error err
|
c.error err.stack
|
||||||
|
|
||||||
(key, val) ->
|
(key, val) ->
|
||||||
if typeof key is 'string'
|
if typeof key is 'string'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user