Skip to content

Instantly share code, notes, and snippets.

View hjanuschka's full-sized avatar
🤖
-.-

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
@hjanuschka
hjanuschka / joomla3-fix.patch
Created February 12, 2026 07:55
Fix Joomla 3.x compatibility for captcha.eu plugin - adds fallback for getWebAssetManager()
diff --git a/captcha_eu.php b/captcha_eu.php
index e73a26a..72e549d 100644
--- a/captcha_eu.php
+++ b/captcha_eu.php
@@ -88,10 +88,16 @@ class PlgCaptchacaptcha_eu extends CMSPlugin
$sdkSrc = 'https://www.captcha.eu/sdk.js';
- // Load assets, the callback should be first
- $this->app->getDocument()->getWebAssetManager()
@hjanuschka
hjanuschka / screenshot-2026-02-06_17-32-27.md
Created February 6, 2026 16:33
Wayland app window bubble positioning

screenshot-2026-02-06_17-32-27

@hjanuschka
hjanuschka / pdf-jxl-README.md
Created February 2, 2026 11:31
PDFium JXL-in-PDF bringup artifacts (tar.gz base64)

PDFium JXL-in-PDF bringup artifacts

This gist contains the PDFs + rendered PNG outputs from ~/pdf-jxl/.

Because GitHub gists (via gh gist) don’t support uploading binary files directly, the artifacts are bundled as a tarball and base64-encoded.

Contents

The tarball contains:

  • pdf-jxl/zoltan-jxldecode.pdf
  • pdf-jxl/zoltan-jxldecode.pdf.0.png
@hjanuschka
hjanuschka / jxl-pdfium-one-pager.md
Last active February 2, 2026 09:57
Design Doc: JPEG XL (JXL) image support in PDFium (Rust-only)

One-page overview: JPEG XL (JXL) image decoding in PDFium (jxl-rs, Rust-only)

Overview

Add JPEG XL (JXL) image decoding support to PDFium using jxl-rs, a pure Rust decoder. This enables PDFs that embed JXL-compressed image XObjects (per the upcoming PDF Association / ISO standardization work) to render correctly in PDFium.

JXL benefits:

  • 30–50% better compression than JPEG (typical for photographic content)
  • Lossless JPEG transcoding (recompress JPEG sources without generation loss)
  • Progressive decoding
@hjanuschka
hjanuschka / screenshots.md
Created February 1, 2026 23:02
Chromium bubble fix screenshots

Chromium Bubble Fix Screenshots

Before/After

Screenshot 1

Screenshot 2

@hjanuschka
hjanuschka / 0001-Fix-bubble-positioning-in-app-windows.patch
Created February 1, 2026 22:52
Fix bubble positioning in app windows (Chromium patch)
From b29d44529f19aa24beeaf197838793b8d1b3d1cf Mon Sep 17 00:00:00 2001
From: Helmut Januschka <helmut@januschka.com>
Date: Sun, 1 Feb 2026 23:41:10 +0100
Subject: [PATCH] Fix bubble positioning in app windows
When the toolbar isn't visible (e.g., --app mode), fall back to anchoring
bubbles to the contents view and reposition them to the top-right corner.
---
.../location_bar_bubble_delegate_view.cc | 15 +++++++++++++++
chrome/browser/ui/views/toolbar/toolbar_view.cc | 9 +++++++++
@hjanuschka
hjanuschka / chromium-bubble-fix.patch
Created February 1, 2026 22:52
Fix bubble positioning in app windows
Fix bubble positioning in app windows
When the toolbar isn't visible (e.g., --app mode), fall back to anchoring
bubbles to the contents view and reposition them to the top-right corner.
---
diff --git a/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc b/chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc
index 01a5846cd6d9d..203c9c56c9b8a 100644
@hjanuschka
hjanuschka / chromium-wayland-app-mode-subsurface-bug.md
Created February 1, 2026 19:09
Chromium --app mode Wayland subsurface positioning bug

Chromium --app Mode Wayland Subsurface Positioning Bug

Summary

When running Chromium with --app flag on Wayland (Hyprland compositor), popup dialogs (like "Save Password" prompts) appear outside the window bounds, positioned to the top-left of the screen instead of inside the application window.

Environment

  • Compositor: Hyprland 0.53.0
  • Chromium Version: 144.0.7559.109 (Arch Linux)
@hjanuschka
hjanuschka / didomi-consent-gate.js
Created January 22, 2026 14:38
Didomi Consent Gate - Load scripts only when vendor 755 + purpose 1 (cookies) are consented
@hjanuschka
hjanuschka / jxl-rs-audit.md
Last active January 16, 2026 08:41
jxl-rs audit report: v0.2.2 → main (7c74207)