{"id":15681,"date":"2017-12-12T09:00:29","date_gmt":"2017-12-12T00:00:29","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=15681"},"modified":"2018-11-14T16:33:42","modified_gmt":"2018-11-14T07:33:42","slug":"vim2fx","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2017\/12\/12\/vim2fx\/","title":{"rendered":"Vim \u3067\u66f8\u3044\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092 Firefox \u4e0a\u3067\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"<p>    \u9c3a\u5742\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f <a href=\"\/blog\/2017\/11\/28\/techscore-advent-calendar-2017\/\" target=\"_blank\" rel=\"noreferrer\">TECHSCORE Advent Calendar 2017 (\u7565\u3057\u3066\u30c6\u30c3\u30c8\u30ab)<\/a> \u306e12\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<h2>Firefox Quantum<\/h2>\n<p>\u5148\u6708\u306e 14 \u65e5\u3001Firefox \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 57 (Quantum) \u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\u304b\u306a\u308a\u9ad8\u901f\u5316\u3055\u308c\u305f\u3068\u306e\u3053\u3068\u3067\u3059\u304c\u3001\u65e7\u5f0f\u306e\u30a2\u30c9\u30aa\u30f3\u304c\u5168\u304f\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\u305d\u306e\u7d50\u679c\u3001Firefox \u306e UI \u304c\u5b8c\u5168\u306b\u5909\u3048\u308b Vimperator\u30fbKeySnail\u30fbPentadactyl \u3068\u3044\u3063\u305f\u30a2\u30c9\u30aa\u30f3\u306f\u5168\u6ec5\u3067\u3059\u3002<br \/>\u3053\u308c\u3089\u30a2\u30c9\u30aa\u30f3\u306f\u30a2\u30c9\u30aa\u30f3\u81ea\u8eab\u304c(\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3057\u305f\u304c)\u30a2\u30c9\u30aa\u30f3\u30b7\u30b9\u30c6\u30e0\u3092\u3082\u3063\u3066\u304a\u308a\u3001\u5f53\u7136\u306e\u3053\u3068\u306a\u304c\u3089\u3053\u308c\u3089\u3082\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h2>\u3042\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u518d\u3073<\/h2>\n<p>\u79c1\u306f <a href=\"http:\/\/vimperator.org\/\" target=\"_blank\" rel=\"noreferrer\">Vimperator<\/a> \u3092\u4f7f\u3063\u3066\u3044\u3066\u3001\u3055\u3089\u306b\u305d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3 <a href=\"https:\/\/github.com\/vimpr\/vimperator-plugins\/blob\/master\/auto_source.js\" target=\"_blank\" rel=\"noreferrer\">auto_source.js<\/a> \u3082\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/><a href=\"https:\/\/github.com\/vimpr\/vimperator-plugins\/blob\/master\/auto_source.js\" target=\"_blank\" rel=\"noreferrer\">auto_source.js<\/a> \u306f\u3001\u6307\u5b9a\u3057\u305f JavaScript \u30d5\u30a1\u30a4\u30eb\u3092\u76e3\u8996\u3057\u3066\u5909\u66f4\u304c\u3042\u308c\u3070 Firefox \u306e\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u3067\u5b9f\u884c\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<br \/>\u4eca\u56de\u306f\u3001\u3053\u308c\u3068\u4f3c\u305f\u3088\u3046\u306a\u4e8b\u304c\u3067\u304d\u308b Web Extension \u3092\u66f8\u3044\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30a2\u30c9\u30aa\u30f3\u306b\u6709\u308a\u305d\u3046\u306a\u6c17\u306f\u3057\u307e\u3059\u304c\u3001\u52c9\u5f37\u3092\u517c\u306d\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u3048\u3066\u63a2\u3055\u306a\u3044\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\u3053\u308c\u304c\u4e0a\u624b\u304f\u3044\u3051\u3070\u3001\u958b\u767a\u8005\u30c4\u30fc\u30eb\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u9577\u3044\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066(\u5165\u529b\u8005\u304c)\u7206\u767a\u3059\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>\u4ed5\u69d8<\/h2>\n<p>\u5143\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u306f\u7570\u306a\u308a\u307e\u3059\u304c\u3001<br \/>\u300cVim \u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3059\u308b\u3068\u3001Firefox \u306e\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bf\u30d6\u3067 Vim \u306e\u30d0\u30c3\u30d5\u30a1\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u300d<br \/>\u3068\u3044\u3046\u4ed5\u69d8\u306b\u3057\u307e\u3059\u3002<br \/>\u8981\u306f Vim \u3067\u66f8\u3044\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5b9f\u884c\u3067\u304d\u308c\u3070\u826f\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<h2>\u5b9f\u88c5\u65b9\u91dd<\/h2>\n<p>Firefox \u306b\u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3059\u308b\u306a\u3069\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u306f(\u81ea\u5206\u304c\u77e5\u308b\u9650\u308a)\u51fa\u6765\u307e\u305b\u3093\u3002<br \/>\u305d\u3053\u3067\u3001WebSocket + TCP \u306a\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u4f5c\u6210\u3057\u3001\u3053\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u3063\u3066 Vim \u304b\u3089 Firefox \u3078\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u9001\u308a\u3053\u3080\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u4e09\u3064\u3067\u69cb\u6210\u3055\u308c\u308b\u30b7\u30b9\u30c6\u30e0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Firefox \u306e\u30a2\u30c9\u30aa\u30f3<\/li>\n<li>Vim \u30b9\u30af\u30ea\u30d7\u30c8<\/li>\n<li>\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc<\/li>\n<\/ul>\n<h3>Firefox \u306e WebSocket<\/h3>\n<p>\u3053\u308c\u306f\u8a00\u3046\u307e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u306d\u3002<br \/>\u4eca\u56de\u4f5c\u308b\u30a2\u30c9\u30aa\u30f3\u306f WebSocket \u3067\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u306b\u5e38\u6642\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\u3053\u308c\u306b\u3088\u308a Vim \u304b\u3089\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5f85\u3061\u53d7\u3051\u307e\u3059\u3002<\/p>\n<h3>Vim \u306e channel<\/h3>\n<p>\u6700\u8fd1\u306e Vim \u306b\u306f <a href=\"https:\/\/raw.githubusercontent.com\/vim-jp\/vimdoc-ja\/master\/doc\/channel.jax\" target=\"_blank\" rel=\"noreferrer\">channel<\/a> \u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u3001<\/p>\n<blockquote>\n<p>let channel = ch_open('localhost:8765')<\/p>\n<\/blockquote>\n<p>\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067 TCP \u30b5\u30fc\u30d0\u30fc\u3078\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<br \/>\u3057\u304b\u3082\u3001\u30e2\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067 JSON \u3067\u9001\u53d7\u4fe1\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<br \/>\u4eca\u56de\u306f\u3001\u3053\u306e channel \u3092\u4f7f\u3063\u3066\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u3078\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u9001\u308a\u3053\u307f\u307e\u3059\u3002<\/p>\n<h3>\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc<\/h3>\n<p>\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u306f Ruby \u306e <a href=\"https:\/\/github.com\/eventmachine\/eventmachine\" target=\"_blank\" rel=\"noreferrer\">em-websocket<\/a> \u3068\u3044\u3046 Gem \u3092\u4f7f\u3063\u3066\u66f8\u304d\u307e\u3059\u3002<br \/><em>EventMachine<\/em> \u3068\u3044\u3046\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3092\u30d9\u30fc\u30b9\u3068\u3057\u305f WebSocket \u30b5\u30fc\u30d0\u30fc\u30e9\u30a4\u30d6\u30e9\u30ea\u30fc\u3068\u306e\u3053\u3068\u3067\u3059\u3002<br \/>(TCP \u30b5\u30fc\u30d0\u30fc\u306f EventMachine \u81ea\u4f53\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059)<\/p>\n<h2>\u5b9f\u88c5<\/h2>\n<p>Web Extension\u30fbRuby\u30fbVim \u306e\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u7701\u304d\u307e\u3059\u304c\u3001\u5f8c\u3067\u53c2\u8003\u30b5\u30a4\u30c8\u3092\u3044\u304f\u3064\u304b\u3042\u3052\u307e\u3059\u3002<br \/>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u5168\u4f53\u306b\u3064\u3044\u3066\u306f <a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/vim2fx.zip\" target=\"_blank\" rel=\"noreferrer\">vim2fx.zip<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30d7\u30ed\u30c8\u30b3\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a JSON \u3067\u3084\u308a\u3068\u308a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/><em>script<\/em> \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u76f4\u63a5\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5185\u306b\u5165\u308c\u308b\u3053\u3068\u3067\u62e1\u5f35\u6027\u3092\u4e00\u5fdc\u62c5\u4fdd\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code>{\"script\": \"window.alert('\u308f\u3001\u732b\u3060!')\"}<\/code><\/pre>\n<h3>Web Extension<\/h3>\n<p>Web Extension \u3067\u306f\u3001<em>manifest.json<\/em> \u3067 background \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30d6\u30e9\u30a6\u30b6\u8d77\u52d5\u4e2d\u305a\u3063\u3068\u52d5\u4f5c\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u307e\u3059\u3002<br \/>\u305f\u3060\u3001background \u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u76f4\u63a5\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bf\u30d6\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\u305d\u3053\u3067\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bf\u30d6\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3066\u3001\u305d\u308c\u3092\u30bf\u30d6\u5074\u3067\u53d7\u4fe1\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<br \/>\u3068\u3044\u3063\u3066\u3082\u3001<em>chrome.tabs.query<\/em> \u3067\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30bf\u30d6\u3092\u63a2\u3057\u3001<em>chrome.tabs.sendMessage<\/em> \u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre><code>const socket = new WebSocket('ws:\/\/127.0.0.1:2017');\r\n\r\nsocket.addEventListener('message', async (event) => {\r\n  chrome.tabs.query({active: true, currentWindow: true}, (tabs) => {\r\n    chrome.tabs.sendMessage(tabs[0].id, JSON.parse(event.data));\r\n  });\r\n});<\/code><\/pre>\n<p>\u30bf\u30d6\u5074\u3067\u306f\u3001<em>chrome.runtime.onMessage.addListener<\/em> \u3067\u53d7\u4fe1\u95a2\u6570\u3092\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\u3053\u306e\u95a2\u6570\u5185\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306e\u30b9\u30af\u30ea\u30d7\u30c8 <em>eval<\/em> \u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<pre><code>chrome.runtime.onMessage.addListener((message, sender) => {\r\n  if (message.script) {\r\n    eval(message.script)\r\n  }\r\n});<\/code><\/pre>\n<h3>Ruby \/ EventMachine<\/h3>\n<p>Vim \u306e channel \u3067 JSON \u9001\u4fe1\u3059\u308b\u3068 <em>[1, {\"script\": \"window.alert(1)\"}]<\/em> \u306e\u3088\u3046\u306b\u5148\u982d\u306b\u6570\u5024\u304c\u5165\u3063\u305f\u914d\u5217\u3067\u5c4a\u304d\u307e\u3059\u3002<br \/>\u306a\u306e\u3067\u3001\u5f8c\u308d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u672c\u4f53\u3060\u3051\u3092\u53d6\u308a\u3060\u3057\u3066\u3044\u307e\u3059\u3002<br \/>TCP \u30b5\u30fc\u30d0\u30fc\u306e\u30dd\u30fc\u30c8\u306f 2018\u3001WebSocket \u30b5\u30fc\u30d0\u30fc\u306f 2017 \u3068\u3057\u307e\u3059\u3002<br \/>\u6570\u5024\u306b\u610f\u5473\u306f\u306a\u3044\u306e\u3067\u3001\u597d\u304d\u306a\u30dd\u30fc\u30c8\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<br \/><em>EM.start_server<\/em> \u3067 TCP \u30b5\u30fc\u30d0\u30fc\u3092\u3001<em>EM::WebSocket.start<\/em> \u3067 WebSocket \u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/><em>EM::Channel<\/em> \u3092\u4f7f\u3063\u3066\u3001Vim \u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 TCP \u30b5\u30fc\u30d0\u30fc\u304b\u3089 WebSocket \u30b5\u30fc\u30d0\u30fc\u3078\u8ee2\u9001\u3057\u307e\u3059\u3002<\/p>\n<pre><code>require 'em-websocket'\r\nrequire 'json'\r\n\r\nEventMachine.run {\r\n  channel = EM::Channel.new\r\n\r\n  EM.start_server(\r\n    '127.0.0.1',\r\n    2018,\r\n    Class.new(EM::Connection) do\r\n      define_method(:receive_data) do |data|\r\n        seq, command = *JSON.parse(data)\r\n        channel.push(command)\r\n      end\r\n    end\r\n  )\r\n\r\n  EM::WebSocket.start(:host => '127.0.0.1', :port => 2017, :debug => false) do |ws|\r\n    ws.onopen do\r\n      sid = channel.subscribe {|message| ws.send(message.to_json) }\r\n      ws.onclose { channel.unsubscribe(sid) }\r\n    end\r\n  end\r\n\r\n  puts 'Server started'\r\n}<\/code><\/pre>\n<p>Ruby \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f <em>2.4.2<\/em>\u3001Gem \u306f\u6700\u65b0\u306e\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>Vim<\/h3>\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001channel \u3092\u4f7f\u3063\u3066 TCP \u30b5\u30fc\u30d0\u30fc\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<pre><code>function! s:send_script(from, to)\r\n  let l:script = []\r\n  for l:ln in range(a:from, a:to)\r\n    call add(l:script, getline(l:ln))\r\n  endfor\r\n  let l:handle = ch_open('127.0.0.1:2018', {'mode': 'json'})\r\n  call ch_sendexpr(l:handle, {'script': join(l:script, \"\\n\")})\r\n  call ch_close(l:handle)\r\nendfunction\r\n\r\ncommand! -range=% Fx call s:send_script(<line1>, <line2>)<\/code><\/pre>\n<h2>\u5b9f\u884c\u3057\u3066\u307f\u308b<\/h2>\n<p><em>vim2fx.rb<\/em> \u304c\u4e0a\u3067\u793a\u3057\u305f Ruby \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<br \/>\u3053\u308c\u3092\u307e\u305a\u306f\u5b9f\u884c\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>$ rbenv exec bundle exec ruby vim2fx.rb<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001Firefox \u3067 <em>about:debugging<\/em> \u3067\u4e00\u6642\u7684\u306a\u30a2\u30c9\u30aa\u30f3\u3068\u3057\u3066\u8aad\u307f\u3053\u307f\u3001\u9069\u5f53\u306a\u666e\u901a\u306e\u30da\u30fc\u30b8\u3092\u958b\u3044\u3066\u3044\u308b\u30bf\u30d6\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>(<em>about:debugging<\/em> \u306a\u3069\u306e\u3088\u3046\u306a\u7279\u5225\u306a\u30da\u30fc\u30b8\u3084 <em>addons.mozilla.org<\/em> \u4e0a\u3067\u306f\u3001\u30a2\u30c9\u30aa\u30f3\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002)<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067 Vim \u3067\u4f55\u304b\u3057\u3089\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304d <em>Fx<\/em> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001Firefox \u3067\u958b\u3044\u3066\u3044\u308b\u30bf\u30d6\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u554f\u984c\u306a\u304f\u5b9f\u884c\u3055\u308c\u308c\u3070<strong>\u5b8c\u6210<\/strong>\u3067\u3059\u3002<\/p>\n<h3>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3<\/h3>\n<p>\u52d5\u304b\u3059\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u306f\u8ffd\u52a0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067 <em>manifest.json<\/em> \u306b\u8ffd\u8a18\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\u5185\u5bb9\u304c\u5185\u5bb9\u306a\u306e\u3067\u3001\u5168\u3066\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3061\u3083\u3063\u3066\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u3064\u3067\u3082 Vim \u304b\u3089 Firefox \u3078\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u9001\u308a\u3053\u307f\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n<em>Fx<\/em> \u30b3\u30de\u30f3\u30c9\u3092\u5b9a\u7fa9\u3057\u305f\u306e\u3067\u3001 autocmd \u3084\u30de\u30c3\u30d4\u30f3\u30b0\u3067\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3082\u3067\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u306f\u5358\u306b JSON \u3092\u53d7\u3051\u3068\u308b\u306b\u904e\u304e\u306a\u3044\u306e\u3067\u3001<a href=\"https:\/\/stedolan.github.io\/jq\/\">jq<\/a> \u306a\u3069\u3092\u4f75\u7528\u3057\u3066\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u3082\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u4eca\u56de\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u6c17\u304c\u5411\u3044\u305f\u3089\u3001\u305d\u308c\u3082\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u524d\u306e Vimperator \u74b0\u5883\u306e\u3088\u3046\u306b\u306f\u3044\u304d\u307e\u305b\u3093\u304c\u5c11\u3057\u306f\u53d6\u308a\u623b\u305b\u305f\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u30b5\u30a4\u30c8<\/h2>\n<p>\u8981\u70b9\u306e\u307f\u3067\u3001\u5168\u3066\u8aac\u660e\u3067\u304d\u3066\u306f\u3044\u306a\u3044\u306e\u3067\u53c2\u8003\u306b\u306a\u308b\u30b5\u30a4\u30c8\u3092\u6319\u3052\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/igrigorik\/em-websocket\" target=\"_blank\" rel=\"noreferrer\">em-websocket<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/ja\/Add-ons\/WebExtensions\/Your_first_WebExtension\" target=\"_blank\" rel=\"noreferrer\">\u521d\u3081\u3066\u306e Extension<\/a><\/li>\n<li><a href=\"https:\/\/raw.githubusercontent.com\/vim-jp\/vimdoc-ja\/master\/doc\/channel.jax\" target=\"_blank\" rel=\"noreferrer\">Vim \u306e channel<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/API\/WebSocket\" target=\"_blank\" rel=\"noreferrer\">WebSocket<\/a><\/li>\n<li><a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%83%8D%E3%82%B3\" target=\"_blank\" rel=\"noreferrer\">Felis silvestris catus<\/a><\/li>\n<\/ul>\n<h2>\u5802\u5cf6\u732b<\/h2>\n<p>\n    <a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/doujima-neko.png\" rel=\"facebox\" rel=\"attachment wp-att-15683\"><img loading=\"lazy\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/doujima-neko-300x225.png\" alt=\"\" width=\"300\" height=\"225\" class=\"alignnone size-medium wp-image-15683\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/doujima-neko-300x225.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/doujima-neko-768x576.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2017\/12\/doujima-neko.png 992w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>    \u9c3a\u5742\u3067\u3059\u3002<br \/>\n\u3053\u308c\u306f TECHSCORE Advent Calendar 2017 (\u7565\u3057\u3066\u30c6\u30c3\u30c8\u30ab) \u306e12\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2017\/12\/12\/vim2fx\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[276,18],"tags":[141,284,24,105,285,47],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/15681"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=15681"}],"version-history":[{"count":25,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/15681\/revisions"}],"predecessor-version":[{"id":16202,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/15681\/revisions\/16202"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=15681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=15681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=15681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}