Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.08 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.08 KB

Open PDFs externally in Chrome

A simple manifest v3 extension which exists solely to let me open a PDF in zathura through a custom script; thought up in a hot afternoon with @aziis98 (his version here).

It uses a custom wza: protocol which I use since I can then redirect it to my wza script which opens the PDF in my favourite reader, Zathura.

Fun tip: to make this work super smoothly, you can tweak Chrom{e|ium}'s policies slightly in order to never ask for permission to open the PDF externally through this custom protocol:

Create a random .json file in

  • /etc/opt/chrome/policies/managed for Chrome,
  • or /etc/chromium/policies/managed for Chromium, and write the following in it:
{
    "URLAllowlist": [
        "wza:*"
    ]
}

Sources for the above: