Extra @match aren't actually necessary when CORS is setup correctly.

This commit is contained in:
Nicolas Stepien 2013-02-19 17:06:37 +01:00
parent 9bb1d61084
commit 88afacb8ee
6 changed files with 3 additions and 12 deletions

View File

@ -1,3 +0,0 @@
language: node_js
node_js:
- 0.8

View File

@ -9,7 +9,6 @@
// @match *://images.4chan.org/*
// @match *://sys.4chan.org/*
// @match *://api.4chan.org/*
// @match *://*.foolz.us/api/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue

View File

@ -9,7 +9,6 @@
// @match *://images.4chan.org/*
// @match *://sys.4chan.org/*
// @match *://api.4chan.org/*
// @match *://*.foolz.us/api/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
@ -2614,11 +2613,8 @@
case 'v':
case 'vg':
case 'wsg':
case 'dev':
case 'foolz':
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;
case 'c':
case 'int':

View File

@ -1,4 +1,4 @@
# 4chan X [![Build Status](https://secure.travis-ci.org/MayhemYDG/4chan-x.png?branch=v3)](https://travis-ci.org/MayhemYDG/4chan-x)
# 4chan X
Get it [here](http://mayhemydg.github.com/4chan-x/).

View File

@ -1285,9 +1285,9 @@ Redirect =
"//archive.nyafuu.org/#{board}/full_image/#{filename}"
post: (board, postID) ->
switch "#{board}"
when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz'
when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg'
"//archive.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}"
when 'u', 'kuku'
when 'u'
"//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}"
when 'c', 'int', 'po'
"//archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}"

View File

@ -9,7 +9,6 @@
// @match *://images.4chan.org/*
// @match *://sys.4chan.org/*
// @match *://api.4chan.org/*
// @match *://*.foolz.us/api/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue