From 5d7bd762924e6435101a90f948b663017163b214 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 26 Sep 2014 19:22:45 +0900 Subject: [PATCH] keysnail.js: Disable a key on feedly page --- _keysnail.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 374b430..a5ddcae 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -161,14 +161,15 @@ local["^https?://(www\.|cloud\.|)feedly\.com/"] = [ // ['x', function(ev, arg){ // ev.target.dispatchEvent(key.stringToKeyEvent("g", true)); // }], - ['l', function(ev, arg){ - var host = window.content.location.host; - if (host === "cloud.feedly.com" || host === "feedly.com") { - window.content.location.href = "http://" + host + "/#latest"; - } else if (host === "www.feedly.com") { - window.content.location.href = "http://" + host + "/home#latest"; - } - }], + // ['l', function(ev, arg){ + // var host = window.content.location.host; + // if (host === "cloud.feedly.com" || host === "feedly.com") { + // window.content.location.href = "http://" + host + "/#latest"; + // } else if (host === "www.feedly.com") { + // window.content.location.href = "http://" + host + "/home#latest"; + // } + // }], + ['a', null], [['t', 'p'], function(ev, arg){ ev.target.dispatchEvent(key.stringToKeyEvent("t", true)); }],