Add dribbble 'heart shot' binding

This commit is contained in:
Maddison Hellstrom 2018-07-12 02:46:13 -07:00
parent 090ab9a865
commit 9c1a54e410
1 changed files with 8 additions and 0 deletions

View File

@ -223,6 +223,10 @@ function hnGoParent() {
window.location.href = par[0].href window.location.href = par[0].href
} }
function dribbleHeartShot() {
Hints.create(".toggle-fav, .like-shot", Hints.dispatchMouseClick)
}
// ---- Mapkeys ----// // ---- Mapkeys ----//
const ri = { repeatIgnore: true } const ri = { repeatIgnore: true }
@ -296,6 +300,10 @@ mapsitekeys("news.ycombinator.com", [
["p", "Go to parent", hnGoParent], ["p", "Go to parent", hnGoParent],
]) ])
mapsitekeys("dribbble.com", [
["s", "Heart Shot", dribbleHeartShot],
])
// ---- Search & completion ----// // ---- Search & completion ----//
// Search leader // Search leader
const sl = "a" const sl = "a"