windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MIT License - © 2017 Jonathan Cole. | |
| import Cocoa | |
| /** | |
| A view with the ability to hide itself if the user clicks outside of it. | |
| */ | |
| class ModalView: NSView { | |
| private var monitor: Any? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -euo pipefail | |
| if [ ${#} -eq 0 ] | |
| then | |
| # read from STDIN | |
| MAYBE_GIT_HASH=$( cat ) | |
| else | |
| MAYBE_GIT_HASH="${1}" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| import CoreGraphics | |
| import Vision | |
| struct TargetWindow { | |
| let id: CGWindowID | |
| let bounds: CGRect | |
| init?(appName: String, windowTitle: String) { | |
| guard let windows = CGWindowListCopyWindowInfo(.optionAll, kCGNullWindowID) as? [[String: Any]] else { return nil } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var OKbtn = document.getElementsByClassName("order-del")[0]; | |
| OKbtn.click(); | |
| var delbtn = document.getElementsByClassName("btn-1 remove-order")[0]; | |
| delbtn.click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setInterval('autoclick()', 200); function autoclick(){ fastReceive(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var arr16 = [订单号,订单号,订单号]; | |
| var pwdValue = "抓包密码"; | |
| var i = 0; | |
| function req() { | |
| var orderId = arr16[i]; | |
| $.ajax({ |