Remove /f/-specific sauce code; add swfchan to default sauce list.

This commit is contained in:
ccd0 2015-03-14 18:14:47 -07:00
parent 03b6a65cb4
commit 8138644fbf
2 changed files with 1 additions and 13 deletions

View File

@ -652,6 +652,7 @@ Config =
sauces: """
https://www.google.com/searchbyimage?image_url=%TURL
http://iqdb.org/?url=%TURL
http://eye.swfchan.com/search/?q=%name;types:swf
#//tineye.com/search?url=%TURL
#//saucenao.com/search.php?url=%TURL
#http://3d.iqdb.org/?url=%TURL

View File

@ -5,16 +5,3 @@ Flash =
initReady: ->
$.globalEval 'if (JSON.parse(localStorage["4chan-settings"] || "{}").disableAll) SWFEmbed.init();'
return unless g.VIEW is 'thread'
swfName = $ '.fileText > a'
nav = $ '.navLinks.desktop'
swfName = swfName.href.replace /^(.*?)\/f\//g, ""
sauceLink = $.el 'a',
textContent: 'Check Sauce on SWFCHAN'
href: "http://eye.swfchan.com/search/?q=#{swfName}"
$.addClass nav, 'swfSauce'
$.rmClass nav, 'navLinks'
$.rmAll nav
$.add nav, [$.tn('['), sauceLink, $.tn(']')]