Skip to content

Chrome Extension: Manifest V3 version with scroll fixes#4

Open
cclambie wants to merge 2 commits intoinitial-uploadfrom
chrome-extension
Open

Chrome Extension: Manifest V3 version with scroll fixes#4
cclambie wants to merge 2 commits intoinitial-uploadfrom
chrome-extension

Conversation

@cclambie
Copy link
Copy Markdown
Owner

Chrome Extension Version (Manifest V3)

This PR creates a Chrome-compatible version of the Xero Cash Coding Filter extension using Manifest V3.

Changes Made

1. Manifest V3 Migration

  • Updated manifest.json from Manifest V2 to V3
    • Changed manifest_version from 2 to 3
    • Moved URL permissions from permissions to host_permissions
    • This is required for modern Chrome extensions

2. Added Scroll Behavior Fixes

  • New file: fix.css
    • Prevents page scroll when grid reaches boundaries
    • Improves grid scrolling with proper overflow handling
    • Sets max-height for better viewport management

3. Chrome-Specific Documentation

  • INSTALL-CHROME.md: Complete installation guide for Chrome users
    • Load unpacked extension method
    • Package as .crx method
    • Troubleshooting tips
  • README-CHROME-NOTES.md: Technical notes on Chrome compatibility
    • Migration details
    • Compatibility notes
    • Testing checklist

Compatibility

What Works the Same

✅ All filtering functionality
✅ Load all button
✅ Account "Has value" filter
✅ Clear button
✅ Progress indicators

What's Different

  • Installation process (Chrome-specific)
  • Manifest format (V3 vs V2)
  • Permission declarations

Code Compatibility

The JavaScript code (content.js) is fully compatible with both Firefox and Chrome:

  • No browser-specific APIs used
  • Pure DOM manipulation
  • Works identically on both platforms

Testing Recommendations

  1. Load the extension in Chrome (Developer mode)
  2. Navigate to https://go.xero.com/Bank/FastCoding.aspx
  3. Verify all features work:
    • Filter row appears
    • Text filters work
    • Account checkbox works
    • Clear button works
    • Load all button works
    • Scrolling is smooth

Files Changed

  • manifest.json - Converted to Manifest V3
  • fix.css - NEW: Scroll behavior improvements
  • INSTALL-CHROME.md - NEW: Chrome installation guide
  • README-CHROME-NOTES.md - NEW: Technical documentation

Notes

This branch is based on initial-upload which contains all merged features including:

  • Load all button functionality
  • Account "Has value" filter
  • Clear button
  • MutationObserver for filter persistence

The Chrome version maintains feature parity with the Firefox version while using the modern Manifest V3 standard.

Xero Filter Bot added 2 commits November 30, 2025 23:46
- Converted manifest.json to Manifest V3 format
- Changed 'permissions' to 'host_permissions' for URL access
- Added fix.css for improved scroll behavior
- Added INSTALL-CHROME.md with Chrome-specific installation instructions
- Added README-CHROME-NOTES.md documenting Chrome compatibility changes
- All JavaScript code is compatible with both Firefox and Chrome
- Version 1.0.0 for Chrome release
…ve logging

- Added 4 fallback strategies to find display count element
- Strategy 1: Check all span.total elements for visibility
- Strategy 2: Search in action-bar area
- Strategy 3: Search near Show more button
- Strategy 4: Search entire page for pattern
- Increased timeout from 10s to 30s in waitForRowsToLoad
- Added detailed console logging for debugging
- Added attempt counter and elapsed time logging
- Improved error messages with more context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant