AppleScript自动脚本,Typecho评论审核自动化点击处置

备份用途,

tell application "System Events"
    repeat 50 times
        my chromeTestClickElements()
    end repeat
end tell

on chromeTestClickElements()
    tell application "Google Chrome"
        delay 2
        activate
        tell window 1
            tell active tab
                execute javascript "document.querySelectorAll('div div div div div ul')[1].querySelectorAll('li a')[1].click()"
                delay 3
                -- execute javascript "document.getElementsByClassName('search')[0].getElementsByClassName('text-s')[0].value = 'have'"
                -- delay 3
                -- execute javascript "document.getElementsByClassName('search')[0].getElementsByClassName('btn btn-s')[0].click()"
                -- delay 4
                execute javascript "document.getElementsByClassName('typecho-table-select-all')[0].click()"
                delay 1
                execute javascript "document.getElementsByClassName('btn dropdown-toggle btn-s')[0].click()"
                delay 1
                execute javascript "document.querySelectorAll('form div div ul li a ')[2].click()"
                delay 1
            end tell
        end tell
    end tell
end chromeTestClickElements

快照:
AppleScript自动脚本,Typecho评论审核自动化点击处置