aboutsummaryrefslogtreecommitdiffstats
path: root/autoIgnoreKey.js
diff options
context:
space:
mode:
authormattn2008-04-09 05:32:35 +0000
committermattn2008-04-09 05:32:35 +0000
commit99dd65177b999d89cb76768e2bb46a71f0efb842 (patch)
tree0fffd61c8b6c41866de6a4bf6ab9339134cb26f9 /autoIgnoreKey.js
parent2c65cb4f5b96968548fa82bc5862669222e06f3b (diff)
downloadvimperator-plugins-99dd65177b999d89cb76768e2bb46a71f0efb842.tar.bz2
lang/javascript/vimperator-plugins/trunk/autoIgnoreKey.js:
* vimperatorrcで設定出来るように変数'autoignorekey_pages'を追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9168 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'autoIgnoreKey.js')
-rw-r--r--autoIgnoreKey.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/autoIgnoreKey.js b/autoIgnoreKey.js
index de3713d..677be01 100644
--- a/autoIgnoreKey.js
+++ b/autoIgnoreKey.js
@@ -13,8 +13,22 @@
* e.g)
* * /^https?:\/\/mail\.google\.com\//
* * 'http://reader.livedoor.com/reader/'
+ *
+ * The autoignorekey_pages is a string variable which can set on
+ * vimperatorrc as following.
+ *
+ * let autoignorekey_pages = "['http://foo.com/*', 'http://bar.com/*']"
+ *
+ * or your can set it using inline javascript.
+ *
+ * javascript <<EOM
+ * liberator.globalVariables.autoignorekey_pages = uneval([
+ * /^https?:\/\/mail\.google\.com\//,
+ * /^https?:\/\/www\.google\.com\/reader\//,
+ * ]);
+ * EOM
*/
-const ignorePagesList = [
+const ignorePagesList = window.eval(liberator.globalVariables.autoignorekey_pages) || [
/^https?:\/\/mail\.google\.com\//,
'http://reader.livedoor.com/reader/*',
'http://reader.livedoor.com/public/*',