Skip to content

Instantly share code, notes, and snippets.

@piatra
Last active July 26, 2019 13:10
Show Gist options
  • Save piatra/d193ca7e0f513cc19fc6a1d396c214f7 to your computer and use it in GitHub Desktop.
Save piatra/d193ca7e0f513cc19fc6a1d396c214f7 to your computer and use it in GitHub Desktop.
newsletter snippet
{
"messages": [
{
"weight": 100,
"content": {
"cta": {
"string_id": "cfr-doorhanger-bookmark-fxa-link-text"
},
"text": {
"string_id": "cfr-doorhanger-bookmark-fxa-body"
},
"color": "white",
"title": {
"string_id": "cfr-doorhanger-bookmark-fxa-header"
},
"info_icon": {
"tooltiptext": {
"string_id": "cfr-doorhanger-bookmark-fxa-info-icon-tooltip"
}
},
"close_button": {
"tooltiptext": {
"string_id": "cfr-doorhanger-bookmark-fxa-close-btn-tooltip"
}
},
"background_color_1": "#7d31ae",
"background_color_2": "#5033be"
},
"trigger": {
"id": "bookmark-panel"
},
"template": "fxa_bookmark_panel",
"targeting": "locale != 'ru' && !usesFirefoxSync && isFxAEnabled == true && totalBookmarksCount >= 10 && firefoxVersion >= 69",
"id": "FXA_BOOKMARK_PANEL_1",
"last_modified": 1562252400492,
"_status": "synced",
"frequency": {
"lifetime": 3
},
"provider": "cfr-fxa"
}
]
}
{
"messages": [
{
"weight": 100,
"id": "11554",
"template": "simple_below_search_snippet",
"template_version": "1.0.0",
"content": {
"text": "Take where you’ve been everywhere you go. Sync your history to other devices with your Firefox Account. <link0>Give it a try</link0>.",
"icon": "https://snippets.cdn.mozilla.net/media/icons/376de73a-96bf-4df1-88ce-d6817715c778.png",
"block_button_text": "Remove this",
"do_not_autoblock": false,
"links": {
"link0": {
"url": "https://www.mozilla.org/en-US/firefox/accounts/"
}
}
},
"targeting": "(isFxAEnabled == undefined || isFxAEnabled == true) && usesFirefoxSync == false",
"provider_url": "https://snippets.cdn.mozilla.net/6/Firefox/68.0a1/20190513102044/Darwin_x86_64-gcc3/en-US/default/Darwin%2018.2.0/default/default/",
"provider": "snippets"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment