Pro plugin scripts

Pro users can drop .js files into the profile Scripts folder or use Settings → Install scripts from files.

API (v1)

Scripts run in a sandboxed JS engine (no file/network IO). Optionally define:

function transformSearchResults(items) {
  // items: array of video objects (title, duration, video_id, …)
  return items.filter(function (v) {
    return (v.title || "").length > 0;
  });
}

If transformSearchResults is missing, results are unchanged. Multiple files load in filename order; the last definition wins.

Security

Plugins can change how lists are shown. Only install scripts you trust. Execution time and memory are capped; complex scripts may be skipped on error.

DTO shape

Each item mirrors the webmasters API JSON (camelCase in script): videoId, title, duration, url, thumb, views, rating, embedUrl, etc. Use JSON.stringify mentally — the host serializes VideoSummary from .NET.