Skip to content

Instantly share code, notes, and snippets.

View a-bangk's full-sized avatar
Working

Adam a-bangk

Working
View GitHub Profile
@thalesmello
thalesmello / close_distractions.js
Created November 22, 2018 09:07
Close distractions using JavaScript for Automation (JXA) for Mac OS
var app = Application.currentApplication()
app.strictParameterType = true
var sitesBlacklist = [
/reddit.com$/,
/youtube.com$/,
]
var appsBlacklist = [
"Slack",
"WhatsApp",