- Example:
helloworld.user.js - Example: Hello World metadata
- Example: Display the “Hello world!” alert
- Example: Bad way to delay calling a function
- Example: Better way to delay calling a function
- Example: Best way to delay calling a function
- Example: Write to JavaScript Console and continue (
gmlog.user.js) - Example: Introduction to Javascript Shell
- Example: Get properties of an element
- Example: Metadata tags to match a domain and all subdomains
- Example: Alert the user if the
GM_xmlhttpRequestfunction is not available - Example: Check if the page contains a
<textarea> - Example: Loop through every element
- Example: Find all the textareas on a page
- Example: Find all the links on a page
- Example: Find all the elements with a
titleattribute - Example: Find all
<div>s with aclassofsponsoredlink - Example: The
xpathfunction - Example: Insert an
<hr>before the main content - Example: Insert an
<hr>after the navigation bar - Example: Remove an ad sidebar
- Example: Replace an image with its alt text
- Example: Insert a banner at the top of the page
- Example: Add a graphical logo at the top of the page
- Example: Make paragraph text larger
- Example: Get the styles defined by an element's
styleattribute - Example: Get the actual style of an element
- Example: Setting style on a single element
- Example: Replace an entire page with custom content
- Example: Find all forms whose method is "POST" or "post"
- Example: Get the current domain
- Example: Add a query parameter to the end of a link
- Example: Redirect a site to its secure counterpart
- Example: Do something when the user clicks anywhere on the page
- Example: Do something before a form is submitted
- Example: Parse an arbitrary string as XML
- Example: Parse XML from a remote source
- Example: Redirect GMail to an equivalent
https://address - Example: Make Bloglines display all unread items automatically
- Example:
aintitreadable.user.js - Example:
offsiteblank.user.js - Example:
dumbquotes.user.js - Example:
frownies.user.js - Example:
zoomtextarea.user.js - Example:
accessbar.user.js