Greasy Fork is available in English.

steamgifts.com sticky header

Makes the nav bar at the top of steamgifts.com "sticky" - i.e., always at the top of the screen even if you scroll the page down

< Feedback on steamgifts.com sticky header

Review: Good - script works

§
Posted: 2015.10.28.
Edited: 2015.10.28.

Nice script, but

Very useful script.
But when opening the permalink of a comment, the header get in front of the start of the coment.

I added this to solve this here:
if (!!document.URL.match(/#.{7}$/) && !!$(document.URL.match(/#.{7}$/)[0]).length){ $(document.URL.match(/#.{7}$/)[0])[0].scrollIntoView(); if (window.scrollY < window.scrollMaxY){ window.scrollByLines(-3); } }

Post reply

Sign in to post a reply.