Greasy Fork is available in English.

Scroll to Bottom or Top

为网页增加滚到页首和页尾的按钮

< Scroll to Bottom or Top 피드백

질문/댓글

§
작성: 2014-11-14

Suggestions

Hi, I just tested this scrip and found a couple of bugs:
1. On a test page, I saw both the icons. However, when I clicked on the bottom pointing arrow, the web page did not scroll all the way to the bottom of the page. Instead it stopped at 3/4th of the page.
Page tested: http://www.xossip.com/showthread.php?t=1165379&page=38

2. On a single page (contents of the page are just a single page and no scroll bar), I am always seeing the bottom pointing arrow icon. This should only show on a page where are contents span more than a single page.
Page tested: This very page while composing this discussion.

§
작성: 2015-01-18

Your first example work for me : i go to the real bottom.
For the second yes , i see the bottom arrow.

§
작성: 2015-01-18
수정: 2015-01-18

Another problem :
If the page provide iframe (by example for a video player), your script show its arrow in this iframe too.
But we don't need it here.

I found that:
// [1] skip all iframe
// From TopAndDownButtonsEverywhere [OpenUserJs
// https://openuserjs.org/scripts/MAX30/TopAndDownButtonsEverywhere/source
if (window.self!=window.top) {return}


That work fine.

댓글 남기기

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