-
Notifications
You must be signed in to change notification settings - Fork 5
/
TODO.txt
62 lines (33 loc) · 2.8 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
TODO: Reintroduce support for poking into ShadowDOMs; see https://bugs.chromium.org/p/chromium/issues/detail?id=778816#c25
HTTP BAD - Detect CC and Password
NOTE: DEEP SELECTOR NO LONGER WORKS. :(
https://bugs.chromium.org/p/chromium/issues/detail?id=937746#c99
Password is easy:
document.querySelectorAll("* /deep/ input[type='password']");
Credit card is complex:
https://cs.chromium.org/chromium/src/components/autofill/core/browser/autofill_regex_constants.cc?sq=package:chromium&dr=CSs&rcl=1473923811&l=140
chrome.management.getSelf( (o) => {
lnkVersion.textContent = lnkVersion.textContent + o.installType; <-- "development" if self-installed
} );
=================
if (typeof msBrowser !== 'undefined') { chrome = msBrowser; } else if (typeof browser !== 'undefined') { chrome = browser;}
scroll link into view
run CSS / HTML / Script lint
0. Inject NOSY image?
1. Hash file downloads (https://developer.chrome.com/extensions/nativeMessaging#native-messaging-host)
You should always provide a 128x128 icon; it's used during installation and by the Chrome Web Store.
Extensions should also provide a 48x48 icon, which is used in the extensions management page (chrome://extensions).
You can also specify a 16x16 icon to be used as the favicon for an extension's pages.
Use PNG format, transparency is good.
"icons": { "16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png" },
For example, Windows often requires 32-pixel icons, and if the app includes a 32-pixel icon, Chrome will choose that instead of shrinking a 48-pixel icon down. However, you should ensure that all of your icons are square, or unexpected behavior may result.
If the icon is square, the main image should be 96x96px with a 16px transparent padding.
Include a 38x38 for retina macs: http://stackoverflow.com/questions/18555085/how-do-i-specify-an-chrome-extension-icon-popup-icon-for-retina-macs
https://developer.chrome.com/webstore/images
https://developer.chrome.com/webstore/branding
https://developer.chrome.com/webstore/publish?hl=en-US#step2
Applications and themes require at least one screenshot. Extensions may have no screenshots, but such extensions won't be shown in the gallery.
Provide preferably 4 or 5 screenshots of your app (up to a maximum of 5). If your app supports multiple locales, you can provide locale-specific screenshots. Your screenshot should have square corners and no padding (full bleed).
We prefer screenshots to be 1280x800 pixels in size, as they will be used in future high dpi displays. Currently, the Chrome Web Store will downscale all screenshots to 640x400, so if your screenshots will not look good downscaled (eg. have a lot of text) or if 1280x800 is too big for your app (screenshot of low resolution game), we also support 640x400 pixels screenshots.