{"id":917,"date":"2013-01-27T22:50:58","date_gmt":"2013-01-27T13:50:58","guid":{"rendered":"http:\/\/appsweets.net\/blog\/?p=917"},"modified":"2013-01-27T23:03:56","modified_gmt":"2013-01-27T14:03:56","slug":"scripting-3","status":"publish","type":"post","link":"https:\/\/appsweets.net\/blog\/2013\/01\/27\/scripting-3\/","title":{"rendered":"Scripting #3"},"content":{"rendered":"<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>\u307c\u3061\u307c\u3061\u5b9f\u88c5\u3057\u59cb\u3081\u308b\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30fc\u30e0\u3092\u8d77\u52d5\u6642\u306b\u751f\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u3064\u3044\u3067\u306b\u3001appsweets.net \u30c9\u30e1\u30a4\u30f3\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092 Application Cache \u306b\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30fc\u30e0\u3067\u52d5\u304f injected script \u3092\u65b0\u8a2d\u3057\u305f\u3002\u4e2d\u5473\u306f\u5f8c\u3067\u66f8\u304f\u3002<\/p>\n<p>ex \u30b3\u30de\u30f3\u30c9\u306e\u30d1\u30fc\u30b5\u306b\u624b\u3092\u5165\u308c\u305f\u3002script \u30b3\u30de\u30f3\u30c9\u304c\u5165\u529b\u3055\u308c\u305f\u5834\u5408\u3001\u300c\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u300d\u306b\u5165\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u305f\u3060\u3057\u3001script \u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u304c\u4e0e\u3048\u3089\u308c\u3066\u3044\u305f\u5834\u5408\u306f\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u306b\u306f\u5165\u3089\u306a\u3044\u3002\u3064\u307e\u308a<br \/>\n<code><br \/>\n:script foo();<br \/>\n<\/code><br \/>\n\u3068<br \/>\n<code><br \/>\n:script<br \/>\nfoo();<br \/>\n:scriptend<br \/>\n<\/code><br \/>\n\u3068\u3044\u3046 2 \u7a2e\u985e\u306e\u8a18\u8ff0\u65b9\u6cd5\u304c\u4f7f\u3048\u308b\u3053\u3068\u306b\u306a\u308b\u3002vim \u3067\u306f\u3001:lua \u3084 :ruby \u306f\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3063\u307d\u3044\u8a18\u8ff0\u65b9\u6cd5\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001\u305d\u308c\u306f\u5225\u306b\u8e0f\u8972\u3057\u306a\u3044\u3002\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u3092\u7d42\u4e86\u3055\u305b\u308b\u306e\u306f\u884c\u304c\u307e\u3055\u306b &#8220;scriptend&#8221; \u3067\u3042\u308b\u5834\u5408\u3060\u3002\u306a\u304a\u3001scriptend \u304c\u73fe\u308c\u306a\u3044\u307e\u307e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u6700\u7d42\u884c\u307e\u3067\u30d1\u30fc\u30b9\u3057\u305f\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b scriptend \u304c\u88dc\u5b8c\u3055\u308c\u305f\u3088\u3046\u306a\u52d5\u4f5c\u3092\u3059\u308b\u3002\u3064\u307e\u308a ex \u30b3\u30de\u30f3\u30c9\u5217\u306e\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u304c script \u3067\u3042\u3063\u305f\u5834\u5408\u306f\u3001scriptend \u306f\u66f8\u304b\u306a\u304f\u3066\u3082\u3088\u3044\u3002<\/p>\n<p>ex \u30b3\u30de\u30f3\u30c9\u306b script \u3092\u65b0\u8a2d\u3002\u3061\u306a\u307f\u306b\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u95a2\u9023\u3068\u3057\u3066\u306f\u3053\u306e\u4ed6\u306b<\/p>\n<ul>\n<li>source: \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u5b9f\u884c<\/li>\n<li>listen: \u30a4\u30d9\u30f3\u30c8\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u767b\u9332\u3059\u308b\u3002vim \u3067\u8a00\u3046\u3068\u3053\u308d\u306e autocmd<\/li>\n<li>unlisten: \u30a4\u30d9\u30f3\u30c8\u304b\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u524a\u9664\u3059\u308b\u3002vim \u3067\u8a00\u3046\u3068\u3053\u308d\u306e autocmd!<\/li>\n<li>command: \u4efb\u610f\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30fc\u30c9\u584a\u306b\u540d\u524d\u3092\u4ed8\u3051\u3001ex \u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u8a8d\u8b58\u3055\u305b\u308b\u3002vim \u306e\u540c\u540d\u30b3\u30de\u30f3\u30c9\u3068\u540c\u3058<\/li>\n<\/ul>\n<p>\u3042\u305f\u308a\u304c\u5fc5\u8981\u3060\u3068\u601d\u3046\u3002:source \u306e\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u306e\u306f\u3001\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e localStorage \u306b\u64ec\u4f3c\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3060\u308d\u3046\u304b\u3002\u3053\u306e\u3078\u3093\u306f Opera Unite \u307f\u305f\u3044\u306b\u30ed\u30fc\u30ab\u30eb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u7279\u5b9a\u306e\u5834\u6240\u306b\u30de\u30c3\u30d7\u3059\u308b\u4ed5\u7d44\u307f\u304c\u3042\u308b\u3068\u3068\u3066\u3082\u3044\u3044\u306e\u3060\u3051\u3069\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001script \u30b3\u30de\u30f3\u30c9\u306e\u30cf\u30f3\u30c9\u30e9\u5185\u3067\u5b9f\u969b\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30fc\u30e0\u3078\u30b9\u30af\u30ea\u30d7\u30c8\u30b3\u30fc\u30c9\u3092\u6295\u3052\u3064\u3051\u5b9f\u884c\u3055\u305b\u308b\u51e6\u7406\u3092\u66f8\u304f\u3002<\/p>\n<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u307c\u3061\u307c\u3061\u5b9f\u88c5\u3057\u59cb\u3081\u308b\u3002 \u3068\u308a\u3042\u3048\u305a\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30fc\u30e0\u3092\u8d77\u52d5\u6642\u306b\u751f\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u3064\u3044\u3067\u306b\u3001appsweets.net \u30c9\u30e1\u30a4\u30f3\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092 Application Cache \u306b\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3002 \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30ec\u30fc\u30e0\u3067\u52d5\u304f injected script \u3092\u65b0\u8a2d\u3057\u305f\u3002\u4e2d\u5473\u306f\u5f8c\u3067\u66f8\u304f\u3002 ex \u30b3\u30de\u30f3\u30c9\u306e\u30d1\u30fc\u30b5\u306b\u624b\u3092\u5165\u308c\u305f\u3002script \u30b3\u30de\u30f3\u30c9\u304c\u5165\u529b\u3055\u308c\u305f\u5834\u5408\u3001\u300c\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u300d\u306b\u5165\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u305f\u3060\u3057\u3001script \u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u304c\u4e0e\u3048\u3089\u308c\u3066\u3044\u305f\u5834\u5408\u306f\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u306b\u306f\u5165\u3089\u306a\u3044\u3002\u3064\u307e\u308a :script foo(); \u3068 :script foo(); :scriptend \u3068\u3044\u3046 2 \u7a2e\u985e\u306e\u8a18\u8ff0\u65b9\u6cd5\u304c\u4f7f\u3048\u308b\u3053\u3068\u306b\u306a\u308b\u3002vim \u3067\u306f\u3001:lua \u3084 :ruby \u306f\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3063\u307d\u3044\u8a18\u8ff0\u65b9\u6cd5\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001\u305d\u308c\u306f\u5225\u306b\u8e0f\u8972\u3057\u306a\u3044\u3002\u30ea\u30c6\u30e9\u30eb\u30e2\u30fc\u30c9\u3092\u7d42\u4e86\u3055\u305b\u308b\u306e\u306f\u884c\u304c\u307e\u3055\u306b &#8220;scriptend&#8221; \u3067\u3042\u308b\u5834\u5408\u3060\u3002\u306a\u304a\u3001scriptend \u304c\u73fe\u308c\u306a\u3044\u307e\u307e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u6700\u7d42\u884c\u307e\u3067\u30d1\u30fc\u30b9\u3057\u305f\u5834\u5408\u3001\u81ea\u52d5\u7684\u306b scriptend \u304c\u88dc\u5b8c\u3055\u308c\u305f\u3088\u3046\u306a\u52d5\u4f5c\u3092\u3059\u308b\u3002\u3064\u307e\u308a ex \u30b3\u30de\u30f3\u30c9\u5217\u306e\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u304c script \u3067\u3042\u3063\u305f\u5834\u5408\u306f\u3001scriptend \u306f\u66f8\u304b\u306a\u304f\u3066\u3082\u3088\u3044\u3002 ex \u30b3\u30de\u30f3\u30c9\u306b script &hellip; <a href=\"https:\/\/appsweets.net\/blog\/2013\/01\/27\/scripting-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,3,4],"class_list":["post-917","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-javascript","tag-vi","tag-wasavi"],"_links":{"self":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/comments?post=917"}],"version-history":[{"count":3,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/917\/revisions"}],"predecessor-version":[{"id":920,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/917\/revisions\/920"}],"wp:attachment":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/media?parent=917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/categories?post=917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/tags?post=917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}