This file contains 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
window.found = false | |
for (let i =0; i < 500; i++) { | |
setTimeout(function() { | |
if (window.found) return; | |
if ($('#the_caption').text().includes('<MATCH>')) { | |
console.log("rank:", i) | |
$('.latest-button-wrapper span')[2].click() | |
window.found = true | |
} else { | |
$('.latest-button-wrapper span')[0].click() |
This file contains 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
{ | |
"title": "Map Caps Lock to Left Control", | |
"rules": [ | |
{ | |
"description": "Change caps_lock to left_control", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock" |
This file contains 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
{ | |
"title": "Swap left command and option keys only in Terminal", | |
"rules": [ | |
{ | |
"description": "Change left_command to left_option", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "left_command" |
This file contains 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 require = patchRequire(require); | |
var cp = require('child_process'); | |
var Q = require('q'); | |
module.exports = function(cmd, args) { | |
var q = Q.defer(); | |
cp.execFile(cmd, args, null, function(err, stdout, stderr) { | |
if (err) return q.reject(err); | |
return q.resolve(stdout, stderr); | |
}); |