From 18eef763c4e914745f0c0d9f9c221f28585b8196 Mon Sep 17 00:00:00 2001 From: Nathan VandenHoek <35298900+vandenng@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:12:51 -0500 Subject: [PATCH] Add Sheets Print Fix for docs.google.com Co-Authored-By: Claude Fable 5.2 --- plugins/google-sheets-print-fix/BOOST.md | 11 ++++ plugins/google-sheets-print-fix/listing.json | 9 +++ plugins/google-sheets-print-fix/manifest.json | 14 ++++ plugins/google-sheets-print-fix/page/page.js | 65 +++++++++++++++++++ .../google-sheets-print-fix/page/style.css | 9 +++ scripts/trials/google-sheets-print-fix.mjs | 41 ++++++++++++ 6 files changed, 149 insertions(+) create mode 100644 plugins/google-sheets-print-fix/BOOST.md create mode 100644 plugins/google-sheets-print-fix/listing.json create mode 100644 plugins/google-sheets-print-fix/manifest.json create mode 100644 plugins/google-sheets-print-fix/page/page.js create mode 100644 plugins/google-sheets-print-fix/page/style.css create mode 100644 scripts/trials/google-sheets-print-fix.mjs diff --git a/plugins/google-sheets-print-fix/BOOST.md b/plugins/google-sheets-print-fix/BOOST.md new file mode 100644 index 0000000..b995518 --- /dev/null +++ b/plugins/google-sheets-print-fix/BOOST.md @@ -0,0 +1,11 @@ +--- +name: Sheets Print Fix +sites: docs.google.com +made: vandenng +preview: https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit +checks: + - on /spreadsheets/*: some of #docs-editor-container + - on /spreadsheets/*: none of .printing-canvas-container +--- + +When I press Cmd+P in Google Sheets, choose my formatting and press Next, print the formatted pages I chose, not a picture of what is on my screen. diff --git a/plugins/google-sheets-print-fix/listing.json b/plugins/google-sheets-print-fix/listing.json new file mode 100644 index 0000000..d551926 --- /dev/null +++ b/plugins/google-sheets-print-fix/listing.json @@ -0,0 +1,9 @@ +{ + "name": "Sheets Print Fix", + "intent": "When I press Cmd+P in Google Sheets, choose my formatting and press Next, print the formatted pages I chose, not a picture of what is on my screen.", + "host": "docs.google.com", + "by": "vandenng", + "picks": false, + "preview": "https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit", + "added": "2026-11-24" +} diff --git a/plugins/google-sheets-print-fix/manifest.json b/plugins/google-sheets-print-fix/manifest.json new file mode 100644 index 0000000..2682a7d --- /dev/null +++ b/plugins/google-sheets-print-fix/manifest.json @@ -0,0 +1,14 @@ +{ + "manifest_version": 3, + "name": "Sheets Print Fix", + "version": "1.0.0", + "description": "Google Sheets' Print (Cmd+P, then Next) prints the formatted pages you chose instead of a picture of the screen.", + "content_scripts": [ + { + "matches": ["https://docs.google.com/*"], + "css": ["page/style.css"], + "js": ["page/page.js"], + "run_at": "document_end" + } + ] +} diff --git a/plugins/google-sheets-print-fix/page/page.js b/plugins/google-sheets-print-fix/page/page.js new file mode 100644 index 0000000..924f421 --- /dev/null +++ b/plugins/google-sheets-print-fix/page/page.js @@ -0,0 +1,65 @@ +// Google Sheets print fix for Yab. +// Sheets appends