No Sticky Headers
v1.3.2 · updated 2026-04-25 · by HatScripts · 29,800 installs
Detects position: sticky and fixed page headers and unpins them so long articles are readable on small screens.
How to install
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Click "Install script", or paste the copied install URL into the manager.
- Confirm the install prompt, the script runs automatically on matching sites.
Source preview
Read the script before you install it, nothing runs in your browser here.
1// ==UserScript==2// @name No Sticky Headers3// @namespace https://hatscripts.com/4// @version 1.3.25// @description Detects position: sticky and fixed page headers and unpins them so long articles are readable on small screens.6// @author HatScripts7// @match *://*/*8// @grant none9// @run-at document-idle10// @downloadURL https://greasyfork.org/scripts/no-sticky-headers/code/script.user.js11// @supportURL https://github.com/HatScripts/no-sticky-headers12// ==/UserScript==1314'use strict';1516const SETTINGS = {17 enabled: true,18 debug: false,19};2021function log(...args) {22 if (SETTINGS.debug) console.log('[no-sticky-headers]', ...args);23}2425function enhance(root = document) {26 if (!SETTINGS.enabled) return;27 const targets = root.querySelectorAll('[data-no-sticky-headers-done="true"]');28 log('already processed', targets.length);29 // Apply the tweak to every matching node on the page.30 for (const node of root.querySelectorAll('main, article, [role="main"]')) {31 if (node.dataset['nostickyheaders']) continue;32 node.dataset['nostickyheaders'] = '1';33 node.classList.add('no-sticky-headers-enhanced');34 }35}3637const observer = new MutationObserver(() => enhance());38observer.observe(document.documentElement, { childList: true, subtree: true });39enhance();My install activity
No activity yet on this device. Copying the install URL or opening the source will show up here.
Changelog
v1.3.2
2026-04-25- Detect sticky elements added after load
v1.3.1
2026-01-25- Add a per-site disable toggle
v1.3.0
2025-08-25- Initial release
Compare versions
−Initial release
+Detect sticky elements added after load
2025-08-25 → 2026-04-25
My data
Favorites and install history live only on this device. Export them as JSON, or import a previous backup.
Related scripts
Google Translate Filter
Removes auto-translated spam results from Google searches so you only see pages originally written in your language.
YouTube Shorts Redirect
Rewrites every /shorts/ URL to the normal watch page so Shorts open in the standard player with speed and quality controls.
Old Reddit Redirect
Sends every reddit.com request to old.reddit.com, keeping query strings, hashes and gallery links intact.