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:
parent
047cc75e89
commit
abd034f6bf
9
conf.js
9
conf.js
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue