Editing
Metadata Block
(section)
From Greasespot Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== @run-at === :Compatibility: Limited support in [[Version_history#4.0_2|Greasemonkey 4.0]]. Example: <pre class='sample'>// @run-at document-end</pre> This key supports three values: ; document-end : The default if no value is provided. The script will run after the main page is loaded, but before other resources (images, style sheets, etc.) have loaded. The only guaranteed working value in Greasemonkey 4.x. ; document-start : The script will run before any document begins loading, thus before any scripts run or images load. ; document-idle : The script will run after the page and all resources (images, style sheets, etc.) are loaded and page scripts have run. To detect if you are running at <code>document-start</code> time, check the value of <code>[https://developer.mozilla.org/en/DOM/document.readyState document.readyState]</code>. For example: <pre class="sample"> if ('loading' == document.readyState) { alert("This script is running at document-start time."); } else { alert("This script is running with document.readyState: " + document.readyState); } </pre> Scripts running at <code>document-end</code> will have the value <code>interactive</code> here.
Summary:
Please note that all contributions to Greasespot Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Greasespot Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main Page
Recent changes
Random page
Search
Tools
What links here
Related changes
Special pages
Page information