diff options
author | anekos | 2010-12-08 21:19:02 +0900 |
---|---|---|
committer | anekos | 2010-12-08 21:36:31 +0900 |
commit | 0099079328c5a4cd363e295a79e870701d740142 (patch) | |
tree | 6b1ec7da7ebbc8531eef84f84e20888c32cd96ed | |
parent | a1a9f7ae53b03fd397de357929024cc21b72d46f (diff) | |
download | vimperator-plugins-0099079328c5a4cd363e295a79e870701d740142.tar.bz2 |
:tw!resetoauth 追加。OAuthの認証情報を削除する
-rw-r--r-- | twittperator.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/twittperator.js b/twittperator.js index d250d91..411905b 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2038,6 +2038,20 @@ let PLUGIN_INFO = timelineCompleter: true, completer: Completers.id(function (it) it.in_reply_to_status_id) }), + SubCommand({ + command: ["resetoauth"], + description: "Reset OAuth Information", + action: function(arg) { + Store.remove("consumerKey"); + Store.remove("consumerSecret"); + Store.remove("token"); + Store.remove("tokenSecret"); + Store.save(); + Twittperator.echo("OAuth information were reset."); + }, + timelineCompleter: false, + completer: Completers.id(function (it) it.in_reply_to_status_id) + }), ]; // }}} function findSubCommand(s) { // {{{ |