mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* Remove docs folder. This was a redirect from a GitHub pages site that does not appear to be in use. * Rename api folder to api-samples. * Move examples to functional-samples folder. * Move cookbook sample to functional-samples. * Move tutorials to functional-samples folder. * Move mv2 and apps folders to _archive. * Rename tools folder to .repo. * Move reference folder to functional-samples. * Update README. Update README with new relative links for reorg. * Update README.md Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> --------- Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com>
40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Download Filename Controller</title>
|
|
<script src="options.js"></script>
|
|
</head>
|
|
<body>
|
|
<table id=rules></table>
|
|
<button id=new>New Rule</button>
|
|
<table hidden>
|
|
<tr id=rule-template hidden>
|
|
<td class=nowrap><button class=move-up>↑</button>
|
|
<button class=move-down>↓</button></td>
|
|
<td>
|
|
<select class=matcher>
|
|
<option value=hostname>Hostname</option>
|
|
<option value=url-regex>URL RegExp</option>
|
|
<option value=default>Default Filename</option>
|
|
<option value=default-regex>Default Filename RegExp</option>
|
|
<option value=js>Javascript</option>
|
|
</select>
|
|
<input type=text class=match-param>
|
|
<select class=action>
|
|
<option value=overwrite>Overwrite default filename</option>
|
|
<option value=prompt>Prompt if default filename exists</option>
|
|
<option value=js>Javascript</option>
|
|
</select>
|
|
<textarea class=action-js rows=5 cols=83>console.log(item.url)
|
|
console.log(item.filename)
|
|
// http://developer.chrome.com/extensions/downloads.html#type-DownloadItem
|
|
// http://developer.chrome.com/extensions/downloads.html#type-FilenameConflictAction
|
|
suggest('hello.txt', 'overwrite')</textarea></td>
|
|
<td><span class=nowrap><input type=checkbox class=enabled checked>
|
|
<label class=enabled-label>Enabled</label></span>
|
|
<button class=remove>Remove</button></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|