Dynalon / chrome-kill-sticky

Chrome extension to remove all elements with fixed or sticky positions

Home Page:https://chrome.google.com/webstore/detail/kill-sticky/lekjlgffkaencjnlcmbgibodhechofdb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kill-Sticky Chrome Extension

A Chrome Extension based on the Kill sticky headers bookmarklet by Alisdair McDiarmid, this adds a keyboard shortcut (Ctrl+Shift+K on Windows & Linux, Cmd+K on macOS) that runs this bit of JavaScript on the current page:

const elements = document.querySelectorAll('body *')
for (let i = 0; i < elements.length; i++) {
  const el = elements[i]
  const pos = window.getComputedStyle(el).position
  if (pos === 'fixed' || pos === 'sticky') {
    el.parentNode.removeChild(el)
  }
}

To change the keyboard shortcut, visit the page chrome://extensions/shortcuts.

Released as open source under the ISC license.

About

Chrome extension to remove all elements with fixed or sticky positions

https://chrome.google.com/webstore/detail/kill-sticky/lekjlgffkaencjnlcmbgibodhechofdb

License:ISC License


Languages

Language:JavaScript 100.0%