Greasy Fork is available in English.

Scroll to Bottom or Top

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

< Părere la script-ul Scroll to Bottom or Top

Întrebare/comentariu

§
Postat în: 14-11-2014

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.

§
Postat în: 18-01-2015

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

§
Postat în: 18-01-2015
Editat în: 18-01-2015

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.

Postează un raspuns

Autentifică-te pentru a posta un răspuns.