No title Revision 616361643462 (Fri Sep 03 2010 at 14:13) - Diff Link to this snippet: https://friendpaste.com/4xWjT9DeUQOOVsnT1aCELP Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324" add :twit <alias> commandjs << EOFAuPoil = { addScript: function(path) { var doc = window.content.document; var s = doc.createElement('script'); s.setAttribute('src', 'http://a.pwal.fr'+path); s.setAttribute('type', 'text/javascript'); doc.body.appendChild(s); }, quickTwit: function(alias) { var doc = window.content.document; // var url = "https://twitter.com/home/?status=$t+$u"; var url = "https://identi.ca//index.php?action=bookmarklet&status_textarea=$t+$u"; var path = '/json/?callback=apwal.quickPost&alias='+alias+'&arg='+encodeURIComponent(url)+'&url='+encodeURIComponent(doc.location.href) this.addScript('/_static/api.js') this.addScript(path) }}EOFcommand! -nargs=? pwal :open http://a.pwal.fr/<args>command! -nargs=? twit :js AuPoil.quickTwit('<args>')command! -nargs=? trac :open http://<args>.trac.bearstech.comcommand! -nargs=? pypi :open http://pypi.python.org/pypi/<args>