Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Last active May 1, 2019 06:38
Show Gist options
  • Save mjarkk/6237699591a6bbda7b3f455dc9fd1dcd to your computer and use it in GitHub Desktop.
Save mjarkk/6237699591a6bbda7b3f455dc9fd1dcd to your computer and use it in GitHub Desktop.
Full Chrome maifest with the most json items i could find and a stuct for GOlang

A full chrome json maifest with a golang stuct that matches everyting

I copied most of my installed chrome extensions and put them toghether intro one big manifest.json and stuct.go
Though there might be more fields

{
"applications": {
"gecko": {
"id": "",
"strict_min_version": ""
}
},
"app": {
"launch": {
"container": "tab",
"web_url": ""
},
"web_content": {
"enabled": true,
"origin": ""
},
"urls": [ "", "" ]
},
"commands": {
"_execute_page_action": {
"suggested_key": {
"default": "Ctrl+Shift+E"
}
},
"devtools-bottom": {
"description": ""
},
"devtools-left": {
"description": ""
},
"devtools-remote": {
"description": ""
},
"devtools-right": {
"description": ""
}
},
"background": {
"persistent": true,
"allow_js_access": false,
"scripts": [ "" ]
},
"chrome_url_overrides": {
"newtab": "index.html"
},
"display_in_launcher": false,
"display_in_new_tab_page": false,
"browser_action": {
"default_icon": {
"16": "",
"19": "",
"32": "",
"38": ""
},
"default_icon": "",
"default_title": "",
"default_popup": ""
},
"content_scripts": [ {
"all_frames": false,
"css": [ "", "" ],
"js": [ "" ],
"match_about_blank": false,
"exclude_globs": [ "*.pdf*" ],
"matches": [ "", "" ],
"run_at": ""
} ],
"content_security_policy": "",
"description": "",
"icons": {
"128": "",
"16": "",
"48": "",
"32": "",
"64": ""
},
"key": "",
"author": "",
"incognito": "split",
"devtools_page": "",
"homepage_url": "",
"manifest_version": 2,
"default_locale": "",
"offline_enabled": true,
"minimum_chrome_version": "21",
"minimum_opera_version": "",
"short_name": "",
"name": "",
"externally_connectable": {
"ids": [ "" ],
"matches": [ "" ]
},
"storage": {
"managed_schema": ""
},
"options_page": "",
"permissions": [ {"socket": [""]}, "", "", "", "", "", "", "" ],
"update_url": "",
"version": "",
"oauth2": {
"auto_approve": true,
"client_id": "",
"scopes": [ "", "" ]
},
"options_ui": {
"chrome_style": true,
"open_in_tab": true,
"page": ""
},
"sandbox": {
"content_security_policy": "",
"pages": [ "" ]
},
"url_handlers": {
"postman_collection": {
"matches": [ "" ],
"title": ""
}
},
"page_action": {
"default_icon": {
"128": "",
"16": "",
"48": "",
"32": "",
"64": ""
},
"default_popup": "",
"default_title": "",
"default_icon": ""
},
"web_accessible_resources": [ "", "" ]
}
type ChromeManifest struct {
Applications struct {
Gecko struct {
ID string `json:"id"`
StrictMinVersion string `json:"strict_min_version"`
} `json:"gecko"`
} `json:"applications"`
App struct {
Launch struct {
Container string `json:"container"`
WebURL string `json:"web_url"`
} `json:"launch"`
WebContent struct {
Enabled bool `json:"enabled"`
Origin string `json:"origin"`
} `json:"web_content"`
Urls []string `json:"urls"`
} `json:"app"`
Commands struct {
ExecutePageAction struct {
SuggestedKey struct {
Default string `json:"default"`
} `json:"suggested_key"`
} `json:"_execute_page_action"`
DevtoolsBottom struct {
Description string `json:"description"`
} `json:"devtools-bottom"`
DevtoolsLeft struct {
Description string `json:"description"`
} `json:"devtools-left"`
DevtoolsRemote struct {
Description string `json:"description"`
} `json:"devtools-remote"`
DevtoolsRight struct {
Description string `json:"description"`
} `json:"devtools-right"`
} `json:"commands"`
Background struct {
Persistent bool `json:"persistent"`
AllowJsAccess bool `json:"allow_js_access"`
Scripts []string `json:"scripts"`
} `json:"background"`
ChromeURLOverrides struct {
Newtab string `json:"newtab"`
} `json:"chrome_url_overrides"`
DisplayInLauncher bool `json:"display_in_launcher"`
DisplayInNewTabPage bool `json:"display_in_new_tab_page"`
BrowserAction struct {
DefaultIcon string `json:"default_icon"`
DefaultTitle string `json:"default_title"`
DefaultPopup string `json:"default_popup"`
} `json:"browser_action"`
ContentScripts []struct {
AllFrames bool `json:"all_frames"`
CSS []string `json:"css"`
Js []string `json:"js"`
MatchAboutBlank bool `json:"match_about_blank"`
ExcludeGlobs []string `json:"exclude_globs"`
Matches []string `json:"matches"`
RunAt string `json:"run_at"`
} `json:"content_scripts"`
ContentSecurityPolicy string `json:"content_security_policy"`
Description string `json:"description"`
Icons struct {
Num16 string `json:"16"`
Num32 string `json:"32"`
Num48 string `json:"48"`
Num64 string `json:"64"`
Num128 string `json:"128"`
} `json:"icons"`
Key string `json:"key"`
Author string `json:"author"`
Incognito string `json:"incognito"`
DevtoolsPage string `json:"devtools_page"`
HomepageURL string `json:"homepage_url"`
ManifestVersion int `json:"manifest_version"`
DefaultLocale string `json:"default_locale"`
OfflineEnabled bool `json:"offline_enabled"`
MinimumChromeVersion string `json:"minimum_chrome_version"`
MinimumOperaVersion string `json:"minimum_opera_version"`
ShortName string `json:"short_name"`
Name string `json:"name"`
ExternallyConnectable struct {
Ids []string `json:"ids"`
Matches []string `json:"matches"`
} `json:"externally_connectable"`
Storage struct {
ManagedSchema string `json:"managed_schema"`
} `json:"storage"`
OptionsPage string `json:"options_page"`
Permissions []interface{} `json:"permissions"`
UpdateURL string `json:"update_url"`
Version string `json:"version"`
Oauth2 struct {
AutoApprove bool `json:"auto_approve"`
ClientID string `json:"client_id"`
Scopes []string `json:"scopes"`
} `json:"oauth2"`
OptionsUI struct {
ChromeStyle bool `json:"chrome_style"`
OpenInTab bool `json:"open_in_tab"`
Page string `json:"page"`
} `json:"options_ui"`
Sandbox struct {
ContentSecurityPolicy string `json:"content_security_policy"`
Pages []string `json:"pages"`
} `json:"sandbox"`
URLHandlers struct {
PostmanCollection struct {
Matches []string `json:"matches"`
Title string `json:"title"`
} `json:"postman_collection"`
} `json:"url_handlers"`
PageAction struct {
DefaultIcon string `json:"default_icon"`
DefaultPopup string `json:"default_popup"`
DefaultTitle string `json:"default_title"`
} `json:"page_action"`
WebAccessibleResources []string `json:"web_accessible_resources"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment