平滑的滚动到顶部/底部

为网页增加滚到顶部和底部按钮

As of 24.03.2015. See апошняя версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
axetroy
Рэйтынг
0 0 0
Версія
2015.3.24-1.3
Створаны
22.03.2015
Абноўлены
24.03.2015
Памер
4.9 КБ
Ліцэнзія
Н/Д
Ужываецца на
Усе сайты

在页面右边添加“回到顶部”“去到底部的按钮”
欢迎各位与我一起学习交流,这是我的博客地址:www.burningall.com
脚本特点:
1,并非duang的一下,立刻达到顶部或底部,而是变加速
2,不用时,会自动移动到浏览器最右边,指向原来位置,可以还原位置
3,并没有外部链接,安全食用
4,chrome和firefox下测试正常。如果异常,请尝试升级浏览器。
Ps:以后会进行美化
更新日志:
……………………………………
2015.3.24-1.3
现在,当页面没有滚动条时,将不会显示。
以及更新了一些不知名代码,主要是防止和页面冲突,以及理顺代码。
以及一些连我都不记得的更新

2015.3.24-1.2
现在,鼠标移开后3秒,两个按钮才会自动移动到边。

2015.3.24-1.1
修复以前的BUG:在网页中,存在标签(引用其他网页内容)时,<ifram>标签里面也会有两个按钮。

2015.3.24-1.0
修复某些网站下,不起作用的问题(其实就是创建元素的ID一样,起冲突。)
简化以及压缩代码
目前已知BUG:在网页中,存在<iframe>标签(引用其他网页内容)时,<ifram>标签里面也会有两个按钮。

2015.3.23-2.0
修复已知BUG:当点击“顶部”,没有达到顶部时,再点击“底部”,滚动条会上上下下抽风。同理先点“底部”,再点“顶部”也是一样的BUG。
现在,当指向一个按钮时,颜色会发生改变

2015.3.23-1.0
修复部分网页下,字体大小显示错误问题

2015.3.22-1.2.2:
把背景的方形改成圆形。
增加黑色阴影

2015.3.22-1.1:
优化代码,减小体积