Outwitters link generator

Script key

Posted by jmjeong

Install

Details

Label Outwitters link generator
Voice Over
Script
/**
 * Created by jmjeong on 11/2/14.
 */


content = getClipboard()

try {
    var id = /id=(.*)/i.exec(content)[1]
} catch(e) {
    alert('Invalid clipboard url');
    stopAction();
}

osnLink = '[OSN](http://osn.codepenguin.com/replays/view/'+id+")"
outwitterLink = "[OutWitter](http://s.jmjeong.com/f.php?id="+id+")"

link = '\n\n- '+osnLink+'\n- '+outwitterLink;
setText(link)

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus