downthemall / anticontainer

DownThemAll! AntiContainer (Extension to a Firefox, Seamonkey extension)
Mozilla Public License 2.0
93 stars 41 forks source link

Fix sharenxs.com support #92

Closed spiralofhope closed 8 years ago

spiralofhope commented 10 years ago

For a page like: (NSFW) http://setsdb.org/lola-brilliantly/#more-43893

Example link: (SFW) http://sharenxs.com/view/?id=m53aypi-010768551-d4jyj4h

The current code is:

{
  "process": "makeRequest(baseURL + '&pjk=l', resolve, resolve);",
  "builder": "{1}",
  "prefix": "ShareNXS.com",
  "match": "^http://([\\w\\d]+\\.)?sharenxs\\.com/view/\\?id=",
  "date": 1386650394000,
  "ns": "downthemall.net",
  "type": "sandbox",
  "finder": "src=\"([^\"]+)\" id=(\"?)img1\\2"
}

The interesting part of the example link's source is:

<a href="/view/?id=m53aypi-010768551-d4jyj4h&offset=original"><span>original</span></a>

The page has a second container link: (SFW) http://sharenxs.com/view/?id=m53aypi-010768551-d4jyj4h&offset=original

The interesting part of that second container's source is:

<a href="#" class="thumb_large"><img class="view_photo" src="/images/wz/cab-/aj/a-/a-/b-/078.jpg?1403078932"/></a>

A direct link to the image is: (SFW) http://sharenxs.com/images/wz/cab-/aj/a-/a-/b-/078.jpg