diff --git a/.htaccess b/.htaccess index d2ab708..b5c9619 100644 --- a/.htaccess +++ b/.htaccess @@ -1,2 +1,4 @@ DirectoryIndex index.shtml index.html AddType text/cache-manifest .appcache +RewriteEngine on +RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA] diff --git a/README.md b/README.md index 0dd5dd7..e77ebf6 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,18 @@ * Won't work on protected accounts (duh!) * No @mentions or DMs from other accounts +# API + +Fetch your tweets manually by accessing the URL: + + http://greptweet.com/f/TWITTER_USERNAME + +Last 4 tweets: + + curl -s http://greptweet/u/webconverger/tweets.txt | head -n4 + # TODO -* Redesign [client to be offline first](http://natalian.org/archives/2012/07/16/navigator.onLine/) * Nail these [bugs](https://github.com/kaihendry/Greptweet/issues?state=open) # Shell script feedback on the Web works by disabling Apache's mod_deflate ! diff --git a/main.js b/main.js index 67852e9..e8787dc 100644 --- a/main.js +++ b/main.js @@ -54,7 +54,7 @@ $(document).ready(function() { $("input[type=text]").focus(); footer = '
'; + footer += ' Update'; $("#source").html(footer); document.title = "Greptweet " + NAME;