Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e0c66ce609
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.539 kb
<!DOCTYPE HTML>
<script>
safari.application.addEventListener("command", performCommand, false);
safari.application.addEventListener("validate", validateCommand, false);
function performCommand(event)
{
// You should always check the command.
if (event.command !== "viewBG") return;
event.currentTarget.activeBrowserWindow.openTab().url = event.userInfo.bg;
}
function validateCommand(event)
{
// You should always check the command.
if (event.command !== "viewBG") return;
event.target.disabled = !event.userInfo.bg;
}
</script>
Jump to Line
Something went wrong with that request. Please try again.