您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
testing SNOW
当前为
// ==UserScript== // @name MyFirstUserScript_Aaron // @namespace AaronLong // @version 1.4 // @description testing SNOW // @author AaronLong // @match https://sap.service-now.com/* // @match https://test.itsm.services.sap/* // @match https://itsm.services.sap/* // @icon https://www.google.com/s2/favicons?domain=services.sap // ==/UserScript== (function() { 'use strict'; function addButton(text, onclickFunc, cssObj) { cssObj = cssObj || {fontWeight: '600', fontSize: '14px', backgroundColor: '#00cccc', color: 'white', border: 'none', padding: '10px 20px', }; let div = document.createElement('div'); let button = document.createElement('button'), btnStyle = button.style ; document.body.appendChild(div).appendChild(button); button.innerHTML = text; button.onclick = onclickFunc; Object.keys(cssObj).forEach(key => btnStyle[key] = cssObj[key]); return button; } var onclick_testFunction ="function(){alert('Testing click!!!');return false;}"; addButton('CalcProcessingTime', onclick_testFunction,); })();