Skip to content

Commit

Permalink
Fix IMGTown
Browse files Browse the repository at this point in the history
  • Loading branch information
cblknittights committed Apr 17, 2017
1 parent fff692c commit 7a1b212
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions hostf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5304,13 +5304,6 @@ return retVal;
return {status: "REDIRECT"};
}]]></searchpattern>
</host>
<host id="imgtrex">
<urlpattern>https?:\/\/(?:www\.)?imgtrex\.com\/[^/]+\/[^/]+$</urlpattern>
<searchpattern><![CDATA[function(pageData, pageUrl) {
var iUrl = pageData.match(/img\s+src="(.+?imgtrex\.com\/(?:i|img)\/.+?)".+?alt="(.+?)"/);
return iUrl ? {imgUrl: iUrl[1], fileName: iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"}
}]]></searchpattern>
</host>

<host id="imgtown.php">
<urlpattern>http:\/\/imgtown\.net\/[^/]+?\.php$</urlpattern>
Expand All @@ -5328,6 +5321,14 @@ return retVal;
}]]></searchpattern>
</host>

<host id="imgtrex">
<urlpattern>https?:\/\/(?:www\.)?imgtrex\.com\/[^/]+\/[^/]+$</urlpattern>
<searchpattern><![CDATA[function(pageData, pageUrl) {
var iUrl = pageData.match(/img\s+src="(.+?imgtrex\.com\/(?:i|img)\/.+?)".+?alt="(.+?)"/);
return iUrl ? {imgUrl: iUrl[1], fileName: iUrl[2], status: "OK"} : {imgUrl: null, status: "ABORT"}
}]]></searchpattern>
</host>

<host id="imgtrex2">
<urlpattern>^http:\/\/imgtrex\.com\/[^/]+\/[^/]+$</urlpattern>
<searchpattern><![CDATA[function(pageData, pageUrl) {
Expand Down

0 comments on commit 7a1b212

Please sign in to comment.