-
-
Notifications
You must be signed in to change notification settings - Fork 5
π₯ Developer Mode
Dasutein edited this page Dec 18, 2024
·
1 revision
Public functions that are available on the extension can be accessed through the console. You must enable developer mode
on Google Chrome or Microsoft Edge then click on service worker
to launch the console.
Function | Description |
---|---|
AutoRename | Global variable for the extension. To access, simply type AutoRename in the console, followed by a period. You may refer to the list of objects available below: CurrentTabName : The name of the active tab CurrentTabId : ID of the active tabEnableLogging : If you want to show additional logging in the console. By default this is false but can be changedGetUserAgent : User agent for the AutoRename extension. User agent will depend on the browser but for this functionality, it will append AutoRename/version number alongside the browser user agentIcon : Path to extension iconLanguage : The current language used in the browserLogLevel : Log level enumsSetLogLevel : Set which logging to see in the console. By default, this will be set to debug .Version : Return the version number of the extension |
Settings | Load and Save extension settings Settings.Load() will return an array containing various settings. Each have different categories and can be accessed depending on usage. For example, if you want to pull settings for X, you must type Settings.Load().Twitter . This will return an array containing the settings for X Settings.Save() will save values. It accepts two parameters Settings.Save(<key name>, <value>)
|