Open up Terminal.app
in your /Applications/Utilities
directory, then type in these commands, one after each other:
-
Create a temporary directory for cycript:
mkdir cycript && cd cycript
-
Pull the latest cycript from cycript.org:
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
<style type="text/css"> | |
a.link{margin:0;padding:0;border:none;text-decoration:none;} | |
</style> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="format-detection" content="telephone=no"> | |
<br /> | |
<br /> |
tell application "Safari" | |
set current_tab to current tab of front window | |
set tab_title to name of current_tab | |
set tab_address to URL of current_tab | |
tell application "Spillo" | |
show create bookmark panel with properties {url:tab_address, title:tab_title} | |
end tell | |
end tell |
(function () { | |
if (!window.fluid) { | |
alert("This script is meant to be run in Fluid! You should disable it."); | |
return; | |
} | |
window.fluid.dockBadge = ''; | |
setInterval(newNotif, 500); |
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name="$inputline" | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url="$inputline" |
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
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:
(function () { | |
if (!window.fluid) { | |
alert("This script is meant to be run in Fluid! You should disable it."); | |
return; | |
} | |
window.fluid.dockBadge = ''; | |
setInterval(newNotif, 500); |