How TweetDeck is saving and getting your preferences!
- Location
- Methods
- init
- addSafeguardedAccount
- removeSafeguardedAccount
- getAccountSelectorGridMode
- getBitlyAccount
- getCheckForUpdates
- getColumnWidth
- getComposeStayOpen
- getDataminrAuthToken
- getDisplaySensitiveMedia
- getFontSize
- getGlobalFilter
- getIdsForSeenMessages
- getLanguage
- getLinkShortener
- getNameCache
- getNavbarWidth
- getPreviousSplashVersion
- getSafeguardedAccountList
- getScheduledColAdded
- getShowSearchFilterCallout
- getShowStartupNotifications
- getTheme
- getUseJmp
- getUseNotificationSound
- getUseStream
- setAccountSelectorGridMode
- setBitlyAccount
- setCheckForUpdates
- setColumnWidth
- setComposeStayOpen
- setDataminrAuthToken
- setDisplaySensitiveMedia
- setFontSize
- setGlobalFilter
- setIdsForSeenMessages
- setLanguage
- setLinkShortener
- setNameCache
- setNavbarWidth
- setPreviousSplashVersion
- setSafeguardedAccountList
- setScheduledColAdded
- setShowSearchFilterCallout
- setShowStartupNotifications
- setTheme
- setUseJmp
- setUseNotificationSound
- setUseStream
- Usage
You can all functions related to settings in TD.settings
.
Another bundled version of all settings can be found by executing
TD.storage.clientsController.client.get('settings')
Description:
Initializes the settings
object
TODO
TODO
Description:
Returns the selected account select grid mode
Description:
Returns details of the set Bitly account, if one exists
Description:
Returns if the client checks for updates automatically
Description:
Returns the set column width
Description:
Returns if the compose drawer is staying open after sending a tweet
Description:
Returns the set Dataminr auth token
Description:
Returns if the user wants to see sensitive media on their timeline
Description:
Returns the font size of the interface
Description:
Returns an object containing all your filters
Description:
Returns all IDs for flash messages you have seen in this session
Description:
Returns the currently set language for TweetDeck
Description:
Returns the currently selected link shortener
Description:
Returns the cache of custom timeline names, usernames and more
Description:
Returns the width of the navbar
Description:
Returns the version in which the last feature splash-screen was shown
Description:
Returns a list of safeguarded accounts, it's empty
Description:
Returns if a column for your scheduled posts exists
Description: Returns if the search filter callout will be shown
Description:
Returns if all new incoming notifications should be shown at start
Description:
Returns your currently set theme
Description:
Whatever this is, it is never used anywhere
Description: Returns if a notification sound should be used
Description:
Returns if specific columns should stream their content
Parameters:
key
value
Description:
Sets key
to value
Parameter:
value
, possible values:grid
minigrid
list
Description:
Set the account selector grid mode to value
Parameter:
value
, object containing:login
your Bit.ly usernameapiKey
your Bit.ly api key
Description:
Set your Bit.ly account details
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if TweetDeck should automatically check for updates
Parameter:
value
, possible values:narrow
medium
wide
Description:
Set the column width
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if the compose drawer should stay open after sending a tweet
Parameter:
value
Description:
Sets your Dataminr auth token to value
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if the user wants to see sensitive media on their timeline
Parameter:
value
, possible values:smallest
small
medium
large
largest
Description:
Set the font size of the interface
Parameter:
value
, containing all your filters
Description:
Set your global filters
Parameter:
value
, containing all IDs
Description:
Set all IDs of flash messages the user has seen
Parameter:
value
Description:
Set the language of TweetDeck
Parameter:
value
Description:
Set the current active link shortener
Parameter:
value
, containing your name cache
Description:
Set your name cache for custom timelines, users and more
Parameter:
value
, possible values:condensed
full-size
Description:
Set the width of the navbar
Parameter:
value
Description:
Set the previous splash version to value
Parameter:
value
, containing all safeguarded accounts
Description:
Set the list of safeguarded accounts
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if a column for scheduled posts exists
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if the search filter callout should be shown
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if all notifications should be shown at startup
Parameter:
value
, possible values:light
dark
Description:
Set the current active theme
Parameter:
value
, can be eithertrue
orfalse
Description:
This is not used anywhere, no idea what it does
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if a notification sound should be used
Parameter:
value
, can be eithertrue
orfalse
Description:
Set if specific columns should stream their content
Just a small example how you can override settings using JS
// We want to set our theme to "dark" and have it instantly update to the frontend as well
// Set our theme to "dark" in the settings backend (persistent)
TD.settings.setTheme("dark")
// Update the frontend to switch to the dark theme (session based, until reload)
$(document).trigger("dataSettings",
{
theme: "dark"
}
)