这个是我要点击的
href="#" class="treasureMapPopup-action-button highlight" onclick="app.views.TreasureMapView.map.discard(this); return false;">Leave</
但是因为其他地方也有 类似的 class比如有个 class="treasureMapPopup-action-button highlight" href="#" onclick="app.views.TreasureMapView.map.toggleTabState('upgradeMap'); return false;">UPGRADE<
然后我想点击leave
我现在用的是油猴的脚本
最好是修改相关的ele元素,如果不能修改,则通过e.target(s.srcElement) 或者 this来获取触发事件的元素,至于更多的区别是获取文本内容是不是“Leave”