From cc24275f4df04135fbe96e0c8fbed8c40121ac10 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 2 Jul 2013 13:58:04 +0900 Subject: [PATCH] keysnail.js: fix lsk for cloud.feedly.com --- _keysnail.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index ba64e67..159dd4c 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -113,7 +113,7 @@ local["^http://w2.p2.2ch.net/p2/read.php"] = [ ///////////////////////////////////////// // feedly -local["^http://www.feedly.com/"] = [ +local["^http://(www|cloud)\.feedly\.com/"] = [ ['d', null], ['j', null], ['k', null], @@ -130,7 +130,12 @@ local["^http://www.feedly.com/"] = [ // ev.target.dispatchEvent(key.stringToKeyEvent("g", true)); // }], ['l', function(ev, arg){ - window.content.location.href = "http://www.feedly.com/home#latest"; + var host = window.content.location.host; + if (host === "cloud.feedly.com") { + window.content.location.href = "http://" + host + "/#latest"; + } else if (host === "www.feedly.com") { + window.content.location.href = "http://" + host + "/home#latest"; + } }], [['t', 'p'], function(ev, arg){ ev.target.dispatchEvent(key.stringToKeyEvent("t", true));