Media Markt Gift Card Manager

My employer gives me a 50-euro Media Markt voucher as a PDF every month. Nice perk, but when you order online and want to redeem several vouchers, it gets annoying: open the PDF, copy the card number, copy the PIN, enter them in the shop, open the next PDF, copy again. With four or five vouchers saved up, that's no fun.

So I built myself a browser overlay that parses the PDFs directly. You drag and drop the voucher PDFs in (or click), the script extracts the card number and PIN automatically and lists all available vouchers. Click "Redeem" and the number gets entered straight into the input field on the Media Markt checkout page.

[[img:1]]

On the left, the overlay shows the available vouchers with card number and a redeem button. Vouchers that have already been used move to a separate section. On the right, the normal Media Markt dialog for adding a gift card opens, with the card number and PIN already pre-filled.

Features:

Load PDF vouchers via drag and drop

Automatic extraction of card number and PIN from the PDF

One-click redemption right in the checkout

Tracking of which vouchers have already been used

Works on Saturn too (same parent company, same system)

The whole userscript is available as a Gist on GitHub.