Merge branch 'master' into menu
This commit is contained in:
commit
3b3e9e8b99
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan x
|
// @name 4chan x
|
||||||
// @version 2.33.4
|
// @version 2.33.5
|
||||||
// @namespace aeosynth
|
// @namespace aeosynth
|
||||||
// @description Adds various features.
|
// @description Adds various features.
|
||||||
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
|
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
* Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com>
|
* Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com>
|
||||||
* Copyright (c) 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
|
* Copyright (c) 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
|
||||||
* http://mayhemydg.github.com/4chan-x/
|
* http://mayhemydg.github.com/4chan-x/
|
||||||
* 4chan X 2.33.4
|
* 4chan X 2.33.5
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person
|
* Permission is hereby granted, free of charge, to any person
|
||||||
* obtaining a copy of this software and associated documentation
|
* obtaining a copy of this software and associated documentation
|
||||||
@ -4216,10 +4216,12 @@
|
|||||||
case 'a':
|
case 'a':
|
||||||
case 'jp':
|
case 'jp':
|
||||||
case 'm':
|
case 'm':
|
||||||
|
case 'sp':
|
||||||
case 'tg':
|
case 'tg':
|
||||||
case 'u':
|
|
||||||
case 'vg':
|
case 'vg':
|
||||||
return "//archive.foolz.us/" + board + "/full_image/" + filename;
|
return "//archive.foolz.us/" + board + "/full_image/" + filename;
|
||||||
|
case 'u':
|
||||||
|
return "//nsfw.foolz.us/" + board + "/full_image/" + filename;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
post: function(board, postID) {
|
post: function(board, postID) {
|
||||||
@ -4228,15 +4230,17 @@
|
|||||||
case 'co':
|
case 'co':
|
||||||
case 'jp':
|
case 'jp':
|
||||||
case 'm':
|
case 'm':
|
||||||
|
case 'sp':
|
||||||
case 'tg':
|
case 'tg':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
case 'u':
|
|
||||||
case 'v':
|
case 'v':
|
||||||
case 'vg':
|
case 'vg':
|
||||||
case 'dev':
|
case 'dev':
|
||||||
case 'foolz':
|
case 'foolz':
|
||||||
case 'kuku':
|
|
||||||
return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
||||||
|
case 'u':
|
||||||
|
case 'kuku':
|
||||||
|
return "//nsfw.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
thread: function(board, threadID, postID) {
|
thread: function(board, threadID, postID) {
|
||||||
@ -4250,19 +4254,25 @@
|
|||||||
case 'co':
|
case 'co':
|
||||||
case 'jp':
|
case 'jp':
|
||||||
case 'm':
|
case 'm':
|
||||||
|
case 'sp':
|
||||||
case 'tg':
|
case 'tg':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
case 'u':
|
|
||||||
case 'v':
|
case 'v':
|
||||||
case 'vg':
|
case 'vg':
|
||||||
case 'dev':
|
case 'dev':
|
||||||
case 'foolz':
|
case 'foolz':
|
||||||
case 'kuku':
|
|
||||||
url = "//archive.foolz.us/" + path + "/";
|
url = "//archive.foolz.us/" + path + "/";
|
||||||
if (threadID && postID) {
|
if (threadID && postID) {
|
||||||
url += "#" + postID;
|
url += "#" + postID;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'u':
|
||||||
|
case 'kuku':
|
||||||
|
url = "//nsfw.foolz.us/" + path + "/";
|
||||||
|
if (threadID && postID) {
|
||||||
|
url += "#" + postID;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'lit':
|
case 'lit':
|
||||||
url = "//fuuka.warosu.org/" + path;
|
url = "//fuuka.warosu.org/" + path;
|
||||||
if (threadID && postID) {
|
if (threadID && postID) {
|
||||||
@ -4936,7 +4946,7 @@
|
|||||||
return $.globalEval(("(" + code + ")()").replace('_id_', bq.id));
|
return $.globalEval(("(" + code + ")()").replace('_id_', bq.id));
|
||||||
},
|
},
|
||||||
namespace: '4chan_x.',
|
namespace: '4chan_x.',
|
||||||
version: '2.33.4',
|
version: '2.33.5',
|
||||||
callbacks: [],
|
callbacks: [],
|
||||||
css: '\
|
css: '\
|
||||||
/* dialog styling */\
|
/* dialog styling */\
|
||||||
|
|||||||
2
Cakefile
2
Cakefile
@ -2,7 +2,7 @@
|
|||||||
{exec} = require 'child_process'
|
{exec} = require 'child_process'
|
||||||
fs = require 'fs'
|
fs = require 'fs'
|
||||||
|
|
||||||
VERSION = '2.33.4'
|
VERSION = '2.33.5'
|
||||||
|
|
||||||
HEADER = """
|
HEADER = """
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
master
|
master
|
||||||
|
|
||||||
|
2.33.5
|
||||||
|
- Mayhem
|
||||||
|
Add /sp/ archive redirection.
|
||||||
|
|
||||||
2.33.4
|
2.33.4
|
||||||
- Mayhem
|
- Mayhem
|
||||||
Fix QR with the new captcha loading method.
|
Fix QR with the new captcha loading method.
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
postMessage({version:'2.33.4'},'*')
|
postMessage({version:'2.33.5'},'*')
|
||||||
@ -3317,8 +3317,10 @@ Redirect =
|
|||||||
image: (board, filename) ->
|
image: (board, filename) ->
|
||||||
# Do not use g.BOARD, the image url can originate from a cross-quote.
|
# Do not use g.BOARD, the image url can originate from a cross-quote.
|
||||||
switch board
|
switch board
|
||||||
when 'a', 'jp', 'm', 'tg', 'u', 'vg'
|
when 'a', 'jp', 'm', 'sp', 'tg', 'vg'
|
||||||
"//archive.foolz.us/#{board}/full_image/#{filename}"
|
"//archive.foolz.us/#{board}/full_image/#{filename}"
|
||||||
|
when 'u'
|
||||||
|
"//nsfw.foolz.us/#{board}/full_image/#{filename}"
|
||||||
# these will work whenever https://github.com/eksopl/fuuka/issues/23 is done
|
# these will work whenever https://github.com/eksopl/fuuka/issues/23 is done
|
||||||
# when 'cgl', 'g', 'w'
|
# when 'cgl', 'g', 'w'
|
||||||
# "//archive.rebeccablacktech.com/#{board}/full_image/#{filename}"
|
# "//archive.rebeccablacktech.com/#{board}/full_image/#{filename}"
|
||||||
@ -3328,8 +3330,10 @@ Redirect =
|
|||||||
# "https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/full_image/#{filename}"
|
# "https://md401.homelinux.net/4chan/cgi-board.pl/#{board}/full_image/#{filename}"
|
||||||
post: (board, postID) ->
|
post: (board, postID) ->
|
||||||
switch board
|
switch board
|
||||||
when 'a', 'co', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg', 'dev', 'foolz', 'kuku'
|
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'dev', 'foolz'
|
||||||
"//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
"//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||||
|
when 'u', 'kuku'
|
||||||
|
"//nsfw.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||||
thread: (board, threadID, postID) ->
|
thread: (board, threadID, postID) ->
|
||||||
# keep the number only if the location.hash was sent f.e.
|
# keep the number only if the location.hash was sent f.e.
|
||||||
postID = postID.match(/\d+/)[0] if postID
|
postID = postID.match(/\d+/)[0] if postID
|
||||||
@ -3339,10 +3343,14 @@ Redirect =
|
|||||||
else
|
else
|
||||||
"#{board}/post/#{postID}"
|
"#{board}/post/#{postID}"
|
||||||
switch board
|
switch board
|
||||||
when 'a', 'co', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg', 'dev', 'foolz', 'kuku'
|
when 'a', 'co', 'jp', 'm', 'sp', 'tg', 'tv', 'v', 'vg', 'dev', 'foolz'
|
||||||
url = "//archive.foolz.us/#{path}/"
|
url = "//archive.foolz.us/#{path}/"
|
||||||
if threadID and postID
|
if threadID and postID
|
||||||
url += "##{postID}"
|
url += "##{postID}"
|
||||||
|
when 'u', 'kuku'
|
||||||
|
url = "//nsfw.foolz.us/#{path}/"
|
||||||
|
if threadID and postID
|
||||||
|
url += "##{postID}"
|
||||||
when 'lit'
|
when 'lit'
|
||||||
url = "//fuuka.warosu.org/#{path}"
|
url = "//fuuka.warosu.org/#{path}"
|
||||||
if threadID and postID
|
if threadID and postID
|
||||||
@ -3831,7 +3839,7 @@ Main =
|
|||||||
$.globalEval "(#{code})()".replace '_id_', bq.id
|
$.globalEval "(#{code})()".replace '_id_', bq.id
|
||||||
|
|
||||||
namespace: '4chan_x.'
|
namespace: '4chan_x.'
|
||||||
version: '2.33.4'
|
version: '2.33.5'
|
||||||
callbacks: []
|
callbacks: []
|
||||||
css: '
|
css: '
|
||||||
/* dialog styling */
|
/* dialog styling */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user