tardypad / sailfishos-daily-comics

Daily comic strips reader for SailfishOS
MIT License
12 stars 17 forks source link

Update extract.js for new website layout #42

Closed cow-n-berg closed 5 years ago

cow-n-berg commented 5 years ago

I settled for smaller image for phone. Tablet might need high resolution file, which is the second regex

cow-n-berg commented 5 years ago

They are sometimes using en-, or EN-. I am not very handy with GitHub, so here's a new regex.

var regex1 = /<img[^>]src="([^"][eE][nN]-[^"]x[^"].[^"]*)"/;