gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
199 stars 25 forks source link

Not work on pixiv #66

Open arashileung opened 6 years ago

arashileung commented 6 years ago

The extension is not work on pixiv due to the referrer blocking

yupi2 commented 6 years ago

Duplicate of #46 I think. Try the option "Enable fetching via content script"

gyng commented 6 years ago

@arashileung Please try that option and see if it works. There needs to be better error messages and UX for this.

arashileung commented 6 years ago

It shows firefox only, I am a chrome user.

gyng commented 6 years ago

I don't know why Chrome refuses to download pixiv via the content script. Chrome just returns an empty response with SERVER_FORBIDDEN for the images, but the requests seem identical between Firefox and Chrome. I must be missing some header or the behaviour is different between the two browsers.

naodesu commented 6 years ago

Works for me on FF 56.0.2 even without "Enable fetching via content script" option.

nichigo13 commented 5 years ago

any update on this bug? chrome users can''t use the "Enable fetching via content script" option.

gyng commented 5 years ago

@nichigo13 @arashileung I've added an option to inject the Referer header in 3.2.0. This should help Chrome users since downloading from content script doesn't work in Chrome.

capture

I've tried it out on pixiv.net locally and it seems to work on full-res images. Let me know if this fixes the problem.

Curiously enabling this seems to break pixiv downloads for Firefox users, so Firefox users should still use "Enable fetching via content script" for pixiv.

nichigo13 commented 5 years ago

the new option fixes the problem. Thanks for the update sir.

arashileung commented 5 years ago

Thanks for the update.

nichigo13 commented 5 years ago

seems the extension stops working again on pixiv

Cirnyan commented 5 years ago

seems the extension stops working again on pixiv

I too am getting the same problem again, and neither of the workaround options help. only a hard refresh lets the first try work.

arashileung commented 5 years ago

@gyng It seems the problem happen again

gyng commented 5 years ago

Thanks for the reports, I'll take a look again.

gyng commented 5 years ago

tldr: It should be fixed for Chrome 72, but it looks like there are regressions in Chrome 73 and newer that leaves this broken for Chrome. This will need more investigation. Firefox seems to be working fine.

If it doesn't work on Firefox still, please let me know your versions of Firefox.

seth-rah commented 4 years ago

Still an issue on chrome 76

nichigo13 commented 4 years ago

still an issue on chrome 79.0.3945.88

nikkoentena commented 3 years ago

still an issue on Chrome 88

seth-rah commented 3 years ago

Might be worth investigating Pixiv toolkit to see how it circumvents the problem.

https://github.com/leoding86/webextension-pixiv-toolkit

LukasThyWalls commented 3 years ago

Should be noted that in Firefox 86.0 i have issues in pixiv (SERVER_FORBIDDEN) but:

Which are the opposite tips than the mentioned above. Maybe they worked like that before, but, at least for me, not now.

Deejay85 commented 3 years ago

Tried the experimental option, and it's no working. I'm on Brave though, but even on Chrome, it won't work.

KuroiMatoO commented 1 year ago

Same. Chrome Version 109.0.5414.141 getting this error every time I try to use it on pixiv. After that it tries to download htm file but it giving the same error. image image