{"id":6887,"date":"2016-04-08T11:59:12","date_gmt":"2016-04-08T02:59:12","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6887"},"modified":"2016-04-08T11:59:12","modified_gmt":"2016-04-08T02:59:12","slug":"microsoft-edge%e3%81%ae%e6%8b%a1%e5%bc%b5%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e7%9f%ad%e7%b8%aeurl%e3%82%92%e5%8f%96%e5%be%97%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b2","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6887","title":{"rendered":"Microsoft Edge\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u77ed\u7e2eURL\u3092\u53d6\u5f97\u3057\u3066\u307f\u308b(2)"},"content":{"rendered":"<p>Windows 10 Insider Preview\u3092<span style=\"color: #ff0000; font-weight: bold;\">Build 14316<\/span>\u306b\u30a2\u30c3\u30d7\u3057\u305f\u3089\u3001<a href=\"\/\/www.ka-net.org\/blog\/?p=6884\" title=\"Microsoft Edge\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u77ed\u7e2eURL\u3092\u53d6\u5f97\u3057\u3066\u307f\u308b\u3002 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u6628\u65e5\u66f8\u3044\u305f\u8a18\u4e8b<\/a>\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001Build 14316\u306b\u5408\u308f\u305b\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u306a\u304a\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">manifest.json<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">{\r\n  &quot;name&quot;: &quot;\u77ed\u7e2eURL\u53d6\u5f97&quot;,\r\n  &quot;description&quot;: &quot;Google URL Shortener API\u3092\u4f7f\u3063\u3066\u77ed\u7e2eURL\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002&quot;,\r\n  &quot;version&quot;: &quot;2.0.0.0&quot;,\r\n  &quot;default_locale&quot;: &quot;ja&quot;,\r\n  &quot;author&quot;: &quot;@kinuasa&quot;,\r\n  &quot;icons&quot;: {\r\n    &quot;24&quot;: &quot;img\/icon_24.png&quot;,\r\n    &quot;128&quot;: &quot;img\/icon_128.png&quot;\r\n  },\r\n  &quot;background&quot;: {\r\n    &quot;page&quot;: &quot;background.html&quot;,\r\n    &quot;persistent&quot;: true\r\n  },\r\n  &quot;browser_action&quot;: {\r\n    &quot;default_title&quot;: &quot;\u77ed\u7e2eURL&quot;,\r\n    &quot;default_icon&quot;: {\r\n      &quot;20&quot;: &quot;img\/icon_20.png&quot;,\r\n      &quot;25&quot;: &quot;img\/icon_25.png&quot;,\r\n      &quot;30&quot;: &quot;img\/icon_30.png&quot;,\r\n      &quot;40&quot;: &quot;img\/icon_40.png&quot;\r\n    }\r\n  },\r\n  &quot;permissions&quot;: &#x5B;\r\n    &quot;&lt;all_urls&gt;&quot;\r\n  ],\r\n  &quot;minimum_edge_version&quot;: &quot;37.14316.1000.0&quot;\r\n}<\/pre>\n<h4 class=\"style4a\">background.html<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=&quot;ja&quot;&gt;\r\n&lt;head&gt;\r\n  &lt;title&gt;\u77ed\u7e2eURL\u53d6\u5f97&lt;\/title&gt;\r\n  &lt;meta charset=&quot;utf-8&quot;&gt;\r\n  &lt;script src=&quot;.\/js\/background.js&quot;&gt;&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;\/html&gt;<\/pre>\n<h4 class=\"style4a\">background.js<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">(function() {\r\n    typeof msBrowser != &quot;undefined&quot; ? chrome = msBrowser : typeof browser != &quot;undefined&quot; ? chrome = browser : chrome = null;\r\n    \r\n    chrome.browserAction.onClicked.addListener(function(tab) {\r\n        chrome.tabs.executeScript(null, { &quot;file&quot;: &quot;.\/js\/ext.js&quot; });\r\n    });\r\n})()<\/pre>\n<h4 class=\"style4a\">ext.js<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">var key = &quot;(Google API Console\u3067\u53d6\u5f97\u3057\u305fAPI\u30ad\u30fc)&quot;;\r\nvar xhr = new XMLHttpRequest();\r\n\r\nxhr.addEventListener(&quot;load&quot;, function(event) {\r\n    var obj = JSON.parse(this.responseText);\r\n    typeof obj.error != &quot;undefined&quot; ? alert(&quot;Error&quot;) : window.prompt(&quot;Short URL:&quot;, obj.id);\r\n});\r\n\r\nxhr.addEventListener(&quot;error&quot;, function(event) {\r\n    alert(&quot;Error&quot;);\r\n});\r\n\r\nxhr.open(&quot;POST&quot;, &quot;https:\/\/www.googleapis.com\/urlshortener\/v1\/url?key=&quot; + key);\r\nxhr.setRequestHeader(&quot;Content-Type&quot;, &quot;application\/json; charset=UTF-8&quot;);\r\nxhr.send(JSON.stringify({&quot;longUrl&quot;:location.href}));<\/pre>\n<h4 class=\"style4a\">\u52d5\u4f5c\u753b\u9762<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Microsoft_Edge_Extensions_04_01.gif\" alt=\"Microsoft_Edge_Extensions_04_01\" width=\"757\" height=\"566\" class=\"alignnone size-full wp-image-6888\" \/><\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">Microsoft Edge 37.14316.1000.0<\/span>\u306b\u306a\u3063\u3066\u3001\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4ed5\u69d8\u3084\u62e1\u5f35\u6a5f\u80fd\u306e\u52d5\u4f5c\u304c\u591a\u5c11\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u307e\u3060\u307e\u3060\u30d7\u30ec\u30d3\u30e5\u30fc\u6bb5\u968e\u306e\u3088\u3046\u306a\u306e\u3067\u3001Edge\u306e\u62e1\u5f35\u6a5f\u80fd\u958b\u767a\u3092\u3057\u305f\u3044\u3068\u3044\u3046\u65b9\u306f\u3001\u73fe\u6642\u70b9\u3067\u306f\u3001\u5b89\u5b9a\u3057\u3066\u3044\u308bChrome\u306e\u65b9\u3067\u62e1\u5f35\u6a5f\u80fd\u3092\u958b\u767a\u2192Edge\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u672c\u683c\u7684\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u79fb\u690d\u3001\u3068\u3044\u3063\u305f\u65b9\u5411\u3067\u9032\u3081\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Windows 10 Insider Preview\u3092Build 14316\u306b\u30a2\u30c3\u30d7\u3057\u305f\u3089\u3001\u6628\u65e5\u66f8\u3044\u305f\u8a18\u4e8b\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001Build 14316\u306b\u5408\u308f\u305b\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u306a\u304a\u3057\u307e\u3057\u305f\u3002 manifest.js [&hellip;]","protected":false},"author":1,"featured_media":7115,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[Microsoft Edge\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u77ed\u7e2eURL\u3092\u53d6\u5f97\u3057\u3066\u307f\u308b(2)]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[132,25,133],"tags":[],"class_list":["post-6887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows10","category-windows","category-microsoft-edge"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-MicrosoftEdge.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1N5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6887"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6887\/revisions"}],"predecessor-version":[{"id":6891,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6887\/revisions\/6891"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7115"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}