aboutsummaryrefslogtreecommitdiffstats
path: root/account_switcher.js
diff options
context:
space:
mode:
authorteramako2013-04-10 22:14:28 +0900
committerteramako2013-04-10 22:14:28 +0900
commit596ae3e9f228d34891f8e52225205e78371b4828 (patch)
tree3e8338fb8c47c07be169a227a5112bab78b7ceba /account_switcher.js
parent004f9e2fd284912c3b70401310e118493c7fa8d3 (diff)
parent8eb425bbdb21e37603603db84d444c90a2d30fb5 (diff)
downloadvimperator-plugins-596ae3e9f228d34891f8e52225205e78371b4828.tar.bz2
Merge branch '3.6'
Diffstat (limited to 'account_switcher.js')
-rw-r--r--account_switcher.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/account_switcher.js b/account_switcher.js
index 4ad1caa..5678759 100644
--- a/account_switcher.js
+++ b/account_switcher.js
@@ -1,4 +1,4 @@
-var PLUGIN_INFO =
+var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Switch account easily.</description>
@@ -50,7 +50,7 @@ liberator.accountSwitcherOpenNewTab = 1;
||<
]]></detail>
-</VimperatorPlugin>;
+</VimperatorPlugin>`;
(function(){
var services = [];
var accounts = [];
@@ -180,7 +180,7 @@ liberator.accountSwitcherOpenNewTab = 1;
if (value.indexOf('=') > 0) {
params.push(value);
} else {
- res.responseText.match(new RegExp('<([^<>]*?name=\"' + value + '\"[^<>]*?)>'));
+ res.responseText.match(new RegExp('<([^`]*?name=\"' + value + '\"[^`]*?)>'));
RegExp.$1.match(/value=\"([\w-]+)\"/);
params.push(value + '=' + encodeURIComponent(RegExp.$1));
}