save-in icon indicating copy to clipboard operation
save-in copied to clipboard

Not work on pixiv

Open arashileung opened this issue 6 years ago • 21 comments

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

arashileung avatar May 01 '18 18:05 arashileung

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

yupi2 avatar May 01 '18 19:05 yupi2

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

gyng avatar May 02 '18 03:05 gyng

It shows firefox only, I am a chrome user.

arashileung avatar May 03 '18 17:05 arashileung

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.

gyng avatar May 06 '18 08:05 gyng

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

naodesu avatar Jul 03 '18 19:07 naodesu

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

nichigo13 avatar Sep 07 '18 09:09 nichigo13

@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.

gyng avatar Sep 08 '18 15:09 gyng

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

nichigo13 avatar Sep 09 '18 10:09 nichigo13

Thanks for the update.

arashileung avatar Sep 25 '18 14:09 arashileung

seems the extension stops working again on pixiv

nichigo13 avatar Apr 07 '19 14:04 nichigo13

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.

Cirnyan avatar Apr 13 '19 12:04 Cirnyan

@gyng It seems the problem happen again

arashileung avatar Apr 14 '19 18:04 arashileung

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

gyng avatar Apr 23 '19 04:04 gyng

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.

  • Tested in Chrome 72, works fine, but it's broken again in Chrome 73. 2019-04-27_11-47-43

  • Technical notes: Chrome 72 introduced a breaking change to the webRequest.onBeforeSendHeaders that requires extraHeaders to be passed in to the listener in order to modify the Referer header. That's been fixed, but it seems to have broken again in Chrome 73.

  • Cannot reproduce in Firefox 2019-04-27_11-44-22

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

gyng avatar Apr 27 '19 06:04 gyng

Still an issue on chrome 76

seth-rah avatar Aug 15 '19 10:08 seth-rah

still an issue on chrome 79.0.3945.88

nichigo13 avatar Dec 30 '19 22:12 nichigo13

still an issue on Chrome 88

nikkoentena avatar Feb 07 '21 00:02 nikkoentena

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

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

seth-rah avatar Feb 07 '21 12:02 seth-rah

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

  • I tried Enable fetching via content script, but then it downloads an HTML with the image filename, with "403: SERVER FORBIDDEN" content.
  • I set https://github.com/gyng/save-in/issues/66#issuecomment-419652363 Set the "Referer" header to page URL if it is missing and then it works.

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

LukasThyWalls avatar Mar 10 '21 11:03 LukasThyWalls

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

Deejay85 avatar Apr 17 '21 19:04 Deejay85

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

KuroiMatoO avatar Jun 05 '23 23:06 KuroiMatoO