mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-12 06:09:05 +07:00
23 lines
1.2 KiB
JavaScript
23 lines
1.2 KiB
JavaScript
// Global configuration variables
|
|
var config = {
|
|
'homepage': 'https://www.google.com',
|
|
'popupConfirmBox': {
|
|
'innerHTML': 'This webpage would like to open a window at <span class="popup-url"></span> Would you like to allow this popup? <a href="#popup-allow" class="popup-allow">Allow</a> <a href="#popup-deny" class="popup-deny">Deny</a>',
|
|
'urlSpanClass': 'popup-url',
|
|
'acceptLinkClass': 'popup-allow',
|
|
'denyLinkClass': 'popup-deny'
|
|
},
|
|
'browsers': {
|
|
'android': 'Android',
|
|
'ios': 'iPhone',
|
|
'nokia': 'Nokia Mobile',
|
|
'bb-playbook': 'BlackBerry Playbook'
|
|
},
|
|
'browserUserAgents': {
|
|
'android': 'Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
|
|
'ios': 'Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3',
|
|
'nokia': 'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920)',
|
|
'bb-playbook': 'Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML, like Gecko) Version/7.2.1.0 Safari/536.2+'
|
|
}
|
|
};
|