您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
百度搜索页面右下角添加一个小火箭标志,点击后流畅的回到顶部
// ==UserScript== // @name 百度搜索回到顶部 // @namespace 百度搜索回到顶部按钮 // @version 0.1 // @description 百度搜索页面右下角添加一个小火箭标志,点击后流畅的回到顶部 // @author You // @include *://www.baidu.com/* // @icon https://z3.ax1x.com/2021/05/19/g5jDC8.png // @grant none // ==/UserScript== (function() { 'use strict'; let div = document.createElement('a') div.href = '#top' div.style.width = '50px' div.style.height = '50px' div.style.borderRadius = '50%' div.style.background = 'url("https://z3.ax1x.com/2021/05/19/g5jDC8.png") no-repeat center' div.style.backgroundSize = '50px 50px' div.style.cursor = 'pointer' div.style.position = 'fixed' div.style.right = '30px' div.style.bottom = '60px' document.body.setAttribute('id','top') document.getElementsByTagName('html')[0].style.scrollBehavior = 'smooth' document.body.style.scrollBehavior = 'smooth' console.log(document.body); document.body.appendChild(div) // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址