Mishiranu / Dashchan-Extensions

Dashchan extensions
GNU General Public License v3.0
48 stars 29 forks source link

Fixed passcodes (PATTERN_AUTH_MESSAGE) for 4chan.org #20

Closed desertkun closed 3 years ago

desertkun commented 5 years ago

Passcode feature does not work anymore on 4chan.org.

That's because now 4chan responds with <h2 class="msg-success">Success! Your device is now authorized.</h2> instead of <span ...>Success! Your device is now authorized.</span> which is cannot be parsed by old regexp PATTERN_AUTH_MESSAGE.

I've fixed the regexp to <h2.*?>(.*?)<(?:br|/h2)>

Mishiranu commented 3 years ago

Yes, this should work. Thanks for contribution!