你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/375571-unfix-fixed-elements,源站連結 點此以跳轉

Unfix Fixed Elements

Intelligently reverses ill-conceived element fixing on sites like Medium.com



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/375571/Unfix%20Fixed%20Elements.user.js

安装此脚本?
作者
x0a
日安装量
0
总安装量
113
评分
0 0 0
版本
3.0
创建于
2018-12-16
更新于
2019-06-07
大小
13.2 KB
许可证
暂无
适用于
所有网站

Description

Removes annoying sticky headers, footers, navigation bars and banners from websites like Medium.com

Synopsis

On my personal laptop, the header and footer on Medium.com obscure a whopping 40% of horizontal screen space.

A very simple, but naive, way to solve the problem would be to find and override every fixed block element with {display: none}. This works but you may lose important elements of the page such as navigation, modals, alerts and prompts. Another method would be to change position to "relative", "static" or "absolute". But this severely breaks scrolling on a site like Medium, and can lead to garbled pages if an element's position in HTML is vastly different from its expected position on the page. A much more effective solution is to conditionally hide/show fixed elements depending on the user's scroll position on the page.

Additional usage

Press Alt + Shift + F to toggle unfixing and re-fixing on a specific website. The exemption will be remembered until you hit Alt + Shift + F again.