Preventing download dialogue box to popup [urgent]

142 views
Skip to first unread message

Hritij Rana

unread,
Nov 13, 2024, 6:55:33 AMNov 13
to Chromium Extensions
Hey guys!
I was wondering if there's a way to prevent the download box that instantly appears as soon as you click the download button for a in-browser pdf 

Regards
Noob coder

Oliver Dunk

unread,
Nov 14, 2024, 9:19:34 AMNov 14
to Hritij Rana, Chromium Extensions
Hi Hritij,

In the past I'm fairly certain I've seen extensions modify the Content-Disposition header. That might be worth investigating: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

Otherwise, perhaps you could have a content script that cancels the click event.
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/645d1ea5-332c-4577-8381-b316c5fa583dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages