-
Notifications
You must be signed in to change notification settings - Fork 2
Debug Commands
Table of Contents
dispatch
Dispatches a route to all route dispatch channels (behavior, context, and featureUse).
Usage:
dispatch <route>
Example:
dispatch chrome click tabbrowser-tabs
behavior
Dispatches a route to the behavior channel.
Usage:
behavior <route>
Example:
behavior chrome click tabbrowser-tabs
context
Dispatches a route to the context channel.
Usage:
context <route>
Example:
context chrome click tabbrowser-tabs
featureUse
Dispatches a route to the featureUse channel.
Usage:
featureUse <route>
Example:
featureUse chrome click tabbrowser-tabs
command
Carries out a controller command. Note that controller commands are different from debug commands.
Usage:
command <command>
Example:
command open url -l www.mozilla.com
deliver
Delivers a certain feature recommendation.
Usage:
deliver <recommendation-id>
Example:
deliver redditEnhancementSuite
schedule
Schedules delivery of a certain feature recommendation to be delivered at a random time.
Usage:
schedule <recommendation-id>
Example:
schedule redditEnhancementSuite
route
Modifies the existing routes.
Usage:
route coeff <coefficient>
Scales all the trigBehavior routes associated with the stored recommendations.
Example:
route coeff 2
For instance, a recommendation with the trigBehavior "chrome click tabbrowser-tabs -c >40" is turned into "chrome click tabbrowser-tabs -c >20".
status
Returns or sets the status of a recommendation.
Usage:
status <recommendation-id>
status <recommendation-id> <newStatus>
Example:
status redditEnhancementSuite inactive
delmode
Modifies the recommendation delivery mode.
Usage:
delmode observ_only <true|false>
Example:
delmode observ_only true
load
Loads one or multiple feature recommendation(s) from a file into the recommendations' database.
Usage:
load <filename> <recommendation-id>
load * <recommendation-id>
Loads the recommendation from the default file, i.e., recommendations.json.
load <filename> *
Loads all the recommendations from the specified file.
load * *
Loads all the recommendations from the default file.
Example:
load * redditEnhancementSuite
recs
Shows a list of the ids of existing recommendations filtered by status.
Usage:
recs [<status>]
Example:
recs
recs outstanding
silence
Starts the silence period.
Usage:
silence
isSilent
Returns whether the silence period is ongoing.
Usage:
isSilent
endSilence
Ends the silence period.
Usage:
endSilence
time
Modifies different time attributes.
Usage:
time set <time-type> <new-time>
time-type is one of {et, tick_length_s, st-diff}
Example:
time set et 50
time set tick_length_s 120
time set st-diff -20
uninstall
Uninstalls the extension.
Usage:
uninstall
disable
Disables the extension.
Usage:
disable
stage
Forces a specific stage in the experiment.
Usage:
stage force <stage-name>
stage force none
Example:
`stage force intervention*
isVidTabOpen
Checks whether one of the open tabs contains one of the popular video websites.
Usage:
isVidTabOpen
- An overview of the debug page: video