chromium/chrome/test/data/extensions/api_test/executescript/fragment/content_script.js

// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

function notify() {
  chrome.runtime.sendMessage("content_script");
}

if (document.readyState) {
  notify();
} else {
  document.onload = notify;
}