All pastes #1843584 Raw Edit

svn diff nico_related_videos.js

public javascript v1 · immutable
#1843584 ·published 2010-03-17 14:35 UTC
rendered paste body
Index: nico_related_videos.js===================================================================--- nico_related_videos.js	(リビジョン 37047)+++ nico_related_videos.js	(作業コピー)@@ -97,12 +97,13 @@       completer: function (context, arg) {         if ((buffer.URL != last.url) || !last.completions.length) {           last.completions = [];-          getRelatedVideos().forEach(function (it) last.completions.push([it.url, it.title]));+          getRelatedVideos().forEach(function (it) last.completions.push([it.url, it.title, it.thumbnail]));           getRelatedTags().forEach(function (it) last.completions.push([":" + it, "tag"]));           last.url = buffer.URL;         }         context.title = ['Keyword'];         context.completions = last.completions;+        context.keys = { text: 0, description: 1, icon: 2 };       }     },     true