您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
界面按钮工具类
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/460642/1325654/Jinxin%20Util%20Button.js
// ==UserScript== // @name Jinxin Util Button // @namespace https://gitee.com/jinxin11112/tampermonkey // @version 0.1.0 // @description 界面按钮工具类 // @author jinxin // @icon <$ICON$> // @resource fontAwesome https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css // @grant GM_addStyle // @grant GM_getResourceText // @license MIT // ==/UserScript== function addDownloadButton(buttonFun) { GM_addStyle(GM_getResourceText("fontAwesome")); let button = document.createElement('i'); button.className = 'fa fa-download'; button.innerHTML = '下载'; // noinspection JSValidateTypes button.style = ` position: fixed; bottom: 20px; left: 20px; display: flex; flex-direction: column; align-items: end; z-index: 999; cursor:pointer; `; button.addEventListener('click', buttonFun); (document.body || document.documentElement).appendChild(button); }