diff --git a/4chan_x.user.js b/4chan_x.user.js index b33a029ec..35c5f69a3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -167,7 +167,7 @@ filesize: [''].join('\n'), md5: [''].join('\n') }, - sauces: ['http://iqdb.org/?url=$1', 'http://www.google.com/searchbyimage?image_url=$1', '#http://tineye.com/search?url=$1', '#http://saucenao.com/search.php?db=999&url=$1', '#http://3d.iqdb.org/?url=$1', '#http://regex.info/exif.cgi?imgurl=$2', '# uploaders:', '#http://imgur.com/upload?url=$2;text:Upload to imgur', '#http://omploader.org/upload?url1=$2;text:Upload to omploader', '# "View Same" in archives:', '#http://archive.foolz.us/search/image/$3/;text:View same on foolz', '#http://archive.foolz.us/$4/search/image/$3/;text:View same on foolz /$4/', '#https://archive.installgentoo.net/$4/image/$3;text:View same on installgentoo /$4/'].join('\n'), + sauces: ['http://iqdb.org/?url=$1', 'http://www.google.com/searchbyimage?image_url=$1', '#http://tineye.com/search?url=$1', '#http://saucenao.com/search.php?db=999&url=$1', '#http://3d.iqdb.org/?url=$1', '#http://regex.info/exif.cgi?imgurl=$2', '# uploaders:', '#http://imgur.com/upload?url=$2;text:Upload to imgur', '#http://omploader.org/upload?url1=$2;text:Upload to omploader', '# "View Same" in archives:', '#http://archive.foolz.us/_/search/image/$3/;text:View same on foolz', '#http://archive.foolz.us/$4/search/image/$3/;text:View same on foolz /$4/', '#https://archive.installgentoo.net/$4/image/$3;text:View same on installgentoo /$4/'].join('\n'), time: '%m/%d/%y(%a)%H:%M', backlink: '>>%id', fileInfo: '%l (%p%s, %r)', @@ -4562,10 +4562,10 @@ case 'wsg': case 'dev': case 'foolz': - return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json"; + return "//archive.foolz.us/_/api/chan/post/?board=" + board + "&num=" + postID; case 'u': case 'kuku': - return "//nsfw.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json"; + return "//nsfw.foolz.us/_/api/chan/post/?board=" + board + "&num=" + postID; } }, thread: function(board, threadID, postID) { diff --git a/script.coffee b/script.coffee index 4d80584e1..c234b30d0 100644 --- a/script.coffee +++ b/script.coffee @@ -118,7 +118,7 @@ Config = '#http://imgur.com/upload?url=$2;text:Upload to imgur' '#http://omploader.org/upload?url1=$2;text:Upload to omploader' '# "View Same" in archives:' - '#http://archive.foolz.us/search/image/$3/;text:View same on foolz' + '#http://archive.foolz.us/_/search/image/$3/;text:View same on foolz' '#http://archive.foolz.us/$4/search/image/$3/;text:View same on foolz /$4/' '#https://archive.installgentoo.net/$4/image/$3;text:View same on installgentoo /$4/' ].join '\n' @@ -3610,9 +3610,9 @@ Redirect = post: (board, postID) -> switch board when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz' - "//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json" + "//archive.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" when 'u', 'kuku' - "//nsfw.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json" + "//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" thread: (board, threadID, postID) -> # keep the number only if the location.hash was sent f.e. postID = postID.match(/\d+/)[0] if postID