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

< steamgifts.com sticky header 피드백

리뷰: 좋음 - 잘 동작함

§
작성: 2015-10-28
수정: 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); } }

댓글 남기기

댓글을 남기려면 로그인하세요.