feat: add Behance bindings

implement bindings for behance.net for common actions including:
- view projects
- appreciate projects
- add projects to collections
This commit is contained in:
Maddison Hellstrom 2018-08-28 13:15:48 -07:00
parent 047cc75e89
commit abd034f6bf
1 changed files with 9 additions and 0 deletions

View File

@ -317,6 +317,15 @@ mapsitekeys("dribbble.com", [
["z", "Zoom shot", Hint(".single-img picture, .detail-shot img")],
])
const behanceAddToCollection = () => document.querySelector(".qa-action-collection").click()
mapsitekeys("behance.net", [
["s", "Appreciate project", Hint(".appreciation-button")],
["b", "Add project to collection", behanceAddToCollection],
["a", "View project", Hint(".rf-project-cover__title")],
["A", "View project", Hint(".rf-project-cover__title")],
])
const wpToggleSimple = () => {
window.location.hostname = window.location.hostname.split(".")
.map((s, i) => {