diff options
author | anekos | 2010-03-25 14:03:10 +0000 |
---|---|---|
committer | anekos | 2010-03-25 14:03:10 +0000 |
commit | 53b152bd8131db6a6dec95635a4d2be8703057bd (patch) | |
tree | 803ea9cf1f141a56a37cb060bb83aa6b39486965 /hints-for-embedded.js | |
parent | 99eb09048eb6036c543e6b02a61b3063bd0c83fb (diff) | |
download | vimperator-plugins-53b152bd8131db6a6dec95635a4d2be8703057bd.tar.bz2 |
設定追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37085 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'hints-for-embedded.js')
-rwxr-xr-x | hints-for-embedded.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hints-for-embedded.js b/hints-for-embedded.js index c76a635..3dc087a 100755 --- a/hints-for-embedded.js +++ b/hints-for-embedded.js @@ -102,6 +102,13 @@ let INFO = const DESC = 'Hint for embedded object'; let modeName = liberator.globalVariables.hint_for_embedded_mode || 'hint-for-embedded'; + let where = liberator.globalVariables.hint_for_embedded_where; + + if (typeof where === 'undefined') + where = liberator.NEW_TAB; + if (typeof where === 'string') + where = liberator[where.replace(/[-\s]/g, '_').toUpperCase()]; + let sites = { nico: { @@ -150,7 +157,7 @@ let INFO = modeName, DESC, function (elem) { - liberator.open(elemToURL(elem), liberator.NEW_TAB); + liberator.open(elemToURL(elem), where); }, function () '//embed | //object | //img' ); |