red and black.
red?
// ==UserScript== | |
// @name Automated AWS SSO CLI - Login | |
// @namespace http://glencoakley.org | |
// @match https://*.awsapps.com/start/user-consent/authorize.html?clientId=* | |
// @grant none | |
// @version 1.0 | |
// @author Glen Coakley | |
// @description Automatically presses the "Sign in to AWS CLI" button. Inspired by Nicholas Hawkes' "Auto AWS SSO CLI - Login" at https://gist.github.com/hawkesnc/ae9fc22fc5d17ac250f6376b0591161c | |
// @homepage https://gist.github.com/GlenCoakley/d3a82a41b2e578b29875625ec6ffa11e | |
// ==/UserScript== |
red and black.
red?
#!/usr/bin/python | |
import subprocess | |
# PyObjC-related imports | |
from AppKit import NSApplication, NSSystemDefined, NSApplicationActivationPolicyProhibited | |
from PyObjCTools import AppHelper | |
KEY_UP = 11 |
command: "echo Hello World!", | |
refreshFrequency: 5000, | |
render: function (output) { | |
return "<div><h1>" + output + "</h1></div>"; | |
}, | |
style: [ | |
"top: 20px", |
This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
Create a new Gist with a command.js
and command.json
file, or simply fork this one.
Write your JavaScript in command.js
. This will be injected into and executed on the page the user is currently on when they run it.
Add some metadata to the command.json
file:
/* CSS States */ | |
body { | |
background: url(http://dabblet.com/img/noise.png); | |
background-color: #F5F2F0; | |
font-family: Georgia, serif; | |
font-size: 18px; | |
line-height: 1.6em; | |
text-shadow: 0 2px 0 white; | |
color: #222; | |
} |