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

< Opinie na steamgifts.com sticky header

Ocena: Dobry - skrypt działa

§
Napisano: 28-10-2015
Edytowano: 28-10-2015

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); } }

Odpowiedz

Zaloguj się, by odpowiedzieć.