Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created July 31, 2013 15:55
Show Gist options
  • Save jkishner/6123285 to your computer and use it in GitHub Desktop.
Save jkishner/6123285 to your computer and use it in GitHub Desktop.
Pushover Count
a = op.getLineText();
b = encodeURIComponent(a);
c = b.replace(/%/g,"%25");
p = "drafts:///create?text=" + c + "%26action=";
l = p.length;
dialog.alert ("This encoded headline contains " + l + " characters.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment