# extendify/3.2.1/src/Agent/lib/extendable-header.js

Extendify, version 3.2.1. 23 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/extendable-header.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/Agent/lib/extendable-header.js
- Modified: 2026-09-16T19:34:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/Agent/lib/extendable-header.js#L10-L20`.

```javascript
const PART_ATTR = 'data-extendify-part';

// A header wearing any of these is positioned by the theme, not inline CSS.
const HEADER_CLASSES = [
	'ext-header-sticky',
	'ext-header-sticky--floating-pill',
	'ext-header-overlay',
	'ext-header-glass',
	'ext-header--dark',
];

const headerBlockEl = () =>
	[...document.querySelectorAll(`[${PART_ATTR}="header"]`)].find(
		(el) => !el.parentElement?.closest(`[${PART_ATTR}="header"]`),
	) ?? null;

export const isExtendableHeader = () => {
	const el = headerBlockEl();
	if (!el) return false;
	const classes = String(el.className).split(/\s+/);
	return HEADER_CLASSES.some((cls) => classes.includes(cls));
};

```
