{"id":1121,"date":"2017-03-28T01:02:47","date_gmt":"2017-03-27T16:02:47","guid":{"rendered":"http:\/\/okamurax.com\/?p=1121"},"modified":"2020-04-30T14:29:06","modified_gmt":"2020-04-30T05:29:06","slug":"chrome%e6%8b%a1%e5%bc%b5%e6%a9%9f%e8%83%bd-%e3%83%96%e3%83%ad%e3%82%b0%e6%a4%9c%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=1121","title":{"rendered":"Chrome\u62e1\u5f35\u6a5f\u80fd \u30d6\u30ed\u30b0\u691c\u7d22"},"content":{"rendered":"<p>\u4ee5\u4e0b\u306e3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u3066Chrome\u62e1\u5f35\u306e\u30da\u30fc\u30b8\u306b\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3060\u3051\u3002<\/p>\n<p>manifest.json<\/p>\n<pre class=\"lang:js decode:true\">{\r\n  \"manifest_version\": 2,\r\n  \"name\": \"\u30d6\u30ed\u30b0\u691c\u7d22\",\r\n  \"version\": \"0.0.1\",\r\n  \"browser_action\":{\r\n    \"default_popup\": \"popup.html\"\r\n  }\r\n}<\/pre>\n<p>script.js<\/p>\n<pre class=\"lang:js decode:true \">$(document).keydown(function(e){\r\n    if(e.keyCode == 13){\r\n        chrome.tabs.create({\r\n            url: \"https:\/\/www.google.co.jp\/search?hl=ja&amp;as_sitesearch=http:\/\/okamurax.com\/&amp;q=\" + $(\"#a\").val()\r\n        });\r\n    }\r\n});<\/pre>\n<p>popup.html<\/p>\n<pre class=\"lang:xhtml decode:true \">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=\"UTF-8\"&gt;\r\n    &lt;title&gt;&lt;\/title&gt;\r\n    &lt;script type=\"text\/javascript\" src=\"jquery-3.1.1.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script type=\"text\/javascript\" src=\"script.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n      &lt;input type=\"text\" id=\"a\" \/&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u306e3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30d5\u30a9\u30eb\u30c0\u306b\u5165\u308c\u3066Chrome\u62e1\u5f35\u306e\u30da\u30fc\u30b8\u306b\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3060\u3051\u3002 manifest.json { &#8220;manifest_version&#8221;: 2, &#8220;name&#8221;: &#8220;\u30d6\u30ed\u30b0\u691c\u7d22&#8221;, &#8220;version &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=1121\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Chrome\u62e1\u5f35\u6a5f\u80fd \u30d6\u30ed\u30b0\u691c\u7d22&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[91],"class_list":["post-1121","post","type-post","status-publish","format-standard","hentry","category-1","tag-chrome"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/1121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1121"}],"version-history":[{"count":4,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/1121\/revisions"}],"predecessor-version":[{"id":3340,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/1121\/revisions\/3340"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}