{"id":5862,"date":"2023-09-23T23:38:04","date_gmt":"2023-09-23T14:38:04","guid":{"rendered":"https:\/\/okamurax.com\/?p=5862"},"modified":"2023-09-23T23:38:04","modified_gmt":"2023-09-23T14:38:04","slug":"chrome%e6%8b%a1%e5%bc%b5-%e7%89%b9%e5%ae%9a%e3%81%ae%e6%96%87%e5%ad%97%e3%81%8c%e5%90%ab%e3%81%be%e3%82%8c%e3%82%8b%e3%82%bf%e3%83%96%e3%82%92%e8%87%aa%e5%8b%95%e3%81%a7%e9%96%89%e3%81%98%e3%82%8b","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=5862","title":{"rendered":"Chrome\u62e1\u5f35 \u7279\u5b9a\u306e\u6587\u5b57\u304c\u542b\u307e\u308c\u308b\u30bf\u30d6\u3092\u81ea\u52d5\u3067\u9589\u3058\u308b"},"content":{"rendered":"<p>script.jp<\/p>\n<pre class=\"lang:js decode:true \">chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) =&gt; {\r\n  if (changeInfo.status === 'complete') {\r\n    if (tab.title.includes(\"\u30a2\u30e9\u30fc\u30c8!\")) {\r\n        chrome.tabs.remove(tabId);\r\n    }\r\n  }\r\n});<\/pre>\n<p>manifest.json<\/p>\n<pre class=\"lang:default decode:true \">{\r\n  \"manifest_version\": 3,\r\n  \"name\": \"AutoCloseTab\",\r\n  \"version\": \"1.0\",\r\n  \"permissions\": [\"tabs\"],\r\n  \"background\": {\r\n    \"service_worker\": \"script.js\"\r\n  }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>script.jp chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) =&gt; { if (changeInfo.status === &#8216;comple &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=5862\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Chrome\u62e1\u5f35 \u7279\u5b9a\u306e\u6587\u5b57\u304c\u542b\u307e\u308c\u308b\u30bf\u30d6\u3092\u81ea\u52d5\u3067\u9589\u3058\u308b&#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-5862","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\/5862","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=5862"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/5862\/revisions"}],"predecessor-version":[{"id":5863,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/5862\/revisions\/5863"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}