{"action":"created","issue":{"url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/193","repository_url":"https://api.github.com/repos/acgotaku/BaiduExporter","labels_url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/193/comments","events_url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/193/events","html_url":"https://github.com/acgotaku/BaiduExporter/pull/193","id":154913937,"number":193,"title":"[WIP][For Personal Review] Support for Microsoft Edge","user":{"login":"CnSimonChan","id":1330321,"avatar_url":"https://avatars.githubusercontent.com/u/1330321?v=3","gravatar_id":"","url":"https://api.github.com/users/CnSimonChan","html_url":"https://github.com/CnSimonChan","followers_url":"https://api.github.com/users/CnSimonChan/followers","following_url":"https://api.github.com/users/CnSimonChan/following{/other_user}","gists_url":"https://api.github.com/users/CnSimonChan/gists{/gist_id}","starred_url":"https://api.github.com/users/CnSimonChan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CnSimonChan/subscriptions","organizations_url":"https://api.github.com/users/CnSimonChan/orgs","repos_url":"https://api.github.com/users/CnSimonChan/repos","events_url":"https://api.github.com/users/CnSimonChan/events{/privacy}","received_events_url":"https://api.github.com/users/CnSimonChan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-05-15T15:23:50Z","updated_at":"2016-05-25T14:33:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/acgotaku/BaiduExporter/pulls/193","html_url":"https://github.com/acgotaku/BaiduExporter/pull/193","diff_url":"https://github.com/acgotaku/BaiduExporter/pull/193.diff","patch_url":"https://github.com/acgotaku/BaiduExporter/pull/193.patch"},"body":"在新增对 Microsoft Edge 支持的基础上进行全面重构\r\n\r\n### 目前进度：\r\n\r\n- [x] 修改 manifest.json 支持 Microsoft Edge\r\n- [x] 修复无法刷新验证码的 bug\r\n- [x] 重写 injector，使用 `chrome.tabs.executeScript` 注入 content script 权限脚本\r\n- [x] baidu.js 使用 `<script>` 方式注入页面和 Baidu API 互操作\r\n- [x] 重写 share.js，完成分享页面导出下载\r\n    - [ ] 负责在多文件分享页面上注入 convert.js\r\n- [x] 重写 home.js，完成个人主页导出下载\r\n- [x] 全新的 Downloader 模块在请求间加入延迟，支持取消\r\n- [x] 重写 album.js，完成导出相册页面文件\r\n- [ ] 移除 old_home.js，旧版个人主页已不再使用\r\n- [ ] 重写 convert.js，完成多文件分享页面上，绕过一次性只能转存 5000 个文件的限制\r\n    - [ ] 使用 `<script>` 方式以 web script 权限注入页面。\r\n    - [ ] 直接 hook 转存对话框的事件，不新增按钮\r\n    - [ ] 以尽量少的请求数完成所有请求\r\n\r\n### 目前问题：\r\n\r\n- [ ] Baidu API 限制一次性转存 5000 个文件，convert.js 用于绕过此限制。哪里可以测试？\r\n- [ ] 对多文件页面，默认导出全部文件而不需要选择？ [(TODO)](https://github.com/CnSimonChan/BaiduExporter/blob/edge/chrome/js/share.js#L120)\r\n- [ ] 默认的 popups 下面没有遮罩层，对需要延迟请求的操作，可能导致重复请求，要不要加一个？\r\n- [x] old_home.js 在哪个页面上可以测试？ A: 旧版个人主页已不再使用，移除\r\n\r\n### 长期计划：\r\n\r\n- [ ] 使用 Page Action 作为入口点？（Edge 14342 暂不支持 Page Action 的 Popup）\r\n\r\n### 重要信息\r\n\r\n此段具有时效性，最后编辑时间：2016-05-24\r\n\r\n重构后将使用部分 ES6 新 API，包括：\r\n\r\n* String.prototype.includes()\r\n* Array.prototype\\[Symbol.iterator\\]()\r\n* for...of... 语法\r\n\r\n可能在某些远古浏览器上无法使用，以上 API 在 Edge 38，Chrome 52 和 Firefox 47 上经过兼容性测试。\r\n\r\n可能即将使用的 API：\r\n\r\n* fetch()\r\n\r\n    ````\r\n    Edge 38: Enable via flag\r\n    Firefox 47: Support\r\n    Chrome 52: Support\r\n    ````\r\n* URLSearchParams\r\n\r\n    ````\r\n    Edge 38: NOT SUPPORT\r\n    Firefox 47: Support\r\n    Chrome 52: Support\r\n    ````"},"comment":{"url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/comments/221595404","html_url":"https://github.com/acgotaku/BaiduExporter/pull/193#issuecomment-221595404","issue_url":"https://api.github.com/repos/acgotaku/BaiduExporter/issues/193","id":221595404,"user":{"login":"CnSimonChan","id":1330321,"avatar_url":"https://avatars.githubusercontent.com/u/1330321?v=3","gravatar_id":"","url":"https://api.github.com/users/CnSimonChan","html_url":"https://github.com/CnSimonChan","followers_url":"https://api.github.com/users/CnSimonChan/followers","following_url":"https://api.github.com/users/CnSimonChan/following{/other_user}","gists_url":"https://api.github.com/users/CnSimonChan/gists{/gist_id}","starred_url":"https://api.github.com/users/CnSimonChan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CnSimonChan/subscriptions","organizations_url":"https://api.github.com/users/CnSimonChan/orgs","repos_url":"https://api.github.com/users/CnSimonChan/repos","events_url":"https://api.github.com/users/CnSimonChan/events{/privacy}","received_events_url":"https://api.github.com/users/CnSimonChan/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T14:33:57Z","updated_at":"2016-05-25T14:33:57Z","body":"来点 async function 怎么样？\r\nhttps://gist.github.com/CnSimonChan/3f62b1ed906deb037929cf2dbca74515"}}
{"actor":{"display_login":"CnSimonChan"}}