Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Update API to support multiple behaviors for a given url #11

Open
ikreymer opened this issue Apr 12, 2019 · 1 comment
Open

Update API to support multiple behaviors for a given url #11

ikreymer opened this issue Apr 12, 2019 · 1 comment
Assignees

Comments

@ikreymer
Copy link
Member

The idea is to support multiple variations of a behavior in an easy way, for example 'Instagram with Comments' and 'Instagram without Comments', and also allow the generic autoscroll behavior to be always available.

Perhaps update the API as follows:

  • Each behavior can have an optional 'rank' metadata, from say, 0 to 100 to indicate its ordering. The best behavior will have a rank of 100 (default). The generic autoscroll behavior will always have the lowest rank (0)
  • /info can return a list of behaviors that match a given regex, ordered from best to worst.
  • /behavior can return the best behavior by default, but also accept rank= query arg to return a different behavior, closest to that rank, eg. rank=0 would generally return the autoscroll behavior.

The rank will determine the order in which behaviors are shown to the user in the UI, so should avoid having same rank for two behaviors generally..

@N0taN3rd
Copy link
Contributor

N0taN3rd commented May 9, 2019

For sake of simplicity, as well as, enable the quick update of behaviors it would be best to not have multiple behaviors per say but rather a way to indicate to a behavior which actions are deselected

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants