您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
页面一键回到顶部
// ==UserScript== // @name 网页回到顶部 | Go Top // @namespace http://ekozhan.com/ // @version 0.2 // @description 页面一键回到顶部 // @author eko.zhan // @include https://github.com* // @match *://*.youtube.com/* // @include *://*.bilibili.com* // @icon https://avatars3.githubusercontent.com/u/3312512 // @grant none // ==/UserScript== (function() { 'use strict'; let _url = location.href; goTop(); /** * go top function */ function goTop(){ let topBtn = document.createElement('div'); topBtn.className = 'meg-gotop'; topBtn.style = 'position:fixed;right:10px;bottom:10px;font-size:24px;font-weight:bolder;cursor: pointer;z-index:9986;'; topBtn.onclick = function(){window.scrollTo(0, 0);}; topBtn.innerHTML = '↑↑'; document.querySelector('body').append(topBtn); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址