推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
sky333

帮看下油猴的脚本

  •  
  •   sky333 · Jul 19, 2017 · 1778 views
    This topic created in 3245 days ago, the information mentioned may be changed or developed.
    function ClawShotCity(){
    if(GetCurrentLocation().indexOf('Claw Shot City') < 0)
    return;

    var cheeseArmed = getPageVariable('user.bait_name');
    if(cheeseArmed.indexOf('Checkmate') > -1)
    checkThenArm(null, 'bait', 'Gouda');
    window.setInterval(function () { fireEvent(document.getElementsByClassName('open active_poster')[0], 'click'); }, 5000);

    window.setInterval(function () { fireEvent(document.getElementsByClassName('treasureMapPopup-cancel')[0], 'click'); }, 5000);


    以上都 OK 我现在需要再点击最后个
    <a href="#" class="treasureMapPopup-action-button highlight" onclick="app.views.TreasureMapView.map.discard(this); return false;">Leave</a>


    但是因为其他地方也有 类似的 class 比如有个<a class="treasureMapPopup-action-button highlight" href="#" onclick="app.views.TreasureMapView.map.toggleTabState('upgradeMap'); return false;">UPGRADE</a>
    然后我想点击 leave
    改怎么写最后步呢
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    ♥ Do have faith in what you're doing.