View Single Post
Old December 31st, 2017, 07:43 AM   #119
effCup
Vintage Idiot
 
effCup's Avatar
 
Join Date: Feb 2012
Location: History
Posts: 22,146
Thanks: 226,800
Thanked 357,080 Times in 21,641 Posts
effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+effCup 1000000+
Default

Someone else has brought to my attention that the current hosts file from IHG still does not handle some -box scenarios. The solution shown here should, although I'd now re-write that very slightly to:

Host Label: imgbox
URL Pattern: http:\/\/imgbox\.com\/\w+
Search Pattern:
Code:
function(pageData, pageUrl) {
	var iUrl = pageData.match(/src=('|")(https?:\/\/)(i|images\d+?)(\.imgbox\.com\/.+?)\1 title=('|")(.+?)\5/);
	return iUrl ? {imgUrl:  iUrl[2] + iUrl[3] + iUrl[4], fileName: iUrl[6], status: "OK"} : {imgUrl: null, status: "ABORT"}
}
effCup is offline   Reply With Quote
The Following 9 Users Say Thank You to effCup For This Useful Post: