您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add a download button
- // ==UserScript==
- // @name DL Button
- // @namespace http://tampermonkey.net/
- // @version 0.12
- // @description add a download button
- // @author zhu
- // @match http://*/*
- // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var button = document.createElement("input"); //创建一个input对象(提示框按钮)
- button.setAttribute("type", "button");
- button.setAttribute("value", "下载");
- button.style.width = "60px";
- button.style.align = "center";
- button.style.marginLeft = "250px";
- button.style.marginBottom = "10px";
- button.style.background = "#b46300";
- // button.style.border = "1px solid " + "#b46300";//52
- button.style.color = "white";
- var x = document.getElementById("lg");
- x.appendChild(button);
- // Your code here...
- })();