chromium/chrome/test/data/extensions/user_script_run_at_end.user.js

// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ==UserScript==
// @name           Document End Test
// @namespace      test
// @description    This script tests document-end
// @include        *
// @run-at         document-end
// ==/UserScript==

alert(document.readyState);