// ==UserScript==
// @name NitasToolBox2
// @version 1.0
// @namespace NitasToolBox_plugin
// @match https://www.wolai.com/*
// @description NitaToolBox浏览器插件
// @author Nita
// @downloadURL none
// ==/UserScript==
(function() {
let div=document.createElement("div");
div.innerHTML='span1span class';
div.onclick=function(event){
if(event.target.id=="span-1"){
alert("span-1被点击了");
}else if(event.target.className=="sp"){
alert("sp这一类被点了");
}
};
document.body.append(div);
// Your code here...
})();