Skip to content

Instantly share code, notes, and snippets.

@SexualMoose
SexualMoose / coupa-receipt-filter.user.js
Last active April 24, 2026 19:44
Coupa Receipt Filter — hides receipts outside ±5% of the expense total, with live FX to USD/EUR/COP/SGD/TRY
// ==UserScript==
// @name Coupa Receipt Filter (Attach Receipt dialog, ±% across currencies)
// @namespace local.tylerkeller
// @version 0.3.1
// @description When the Coupa "Attach a receipt" dialog opens, filter receipts to those within ±X% of the expense line's Total Amount (converted to USD/EUR/COP/SGD/TRY). Displays merchant, date, and total on the filter bar. Shrinks the dialog body so the Attach/Cancel buttons remain visible.
// @match https://*.coupahost.com/*
// @run-at document-idle
// @grant GM_xmlhttpRequest
// @connect open.er-api.com
// ==/UserScript==