Pweb 发表于 2013-1-29 11:49:40

jQuery & Greasemonkey

How to play nicely with jQuery and Greasemonkey

http://joanpiedra.com/jquery/greasemonkey/images/pic.png
Overview

This is a simple snippet that helps us load the jQuery power into our userscripts with Greasemonkey 0.7 or lower, newer versions may use @require.
Updates

2010-04-24:
The userscript checks if jQuery is already loaded in the page and uses it, otherwise loads it from Google's CDN. It's also using jQuery.noConflict(true).
Thanks to everyone who sent me emails about this over this and last year.
Code

<div class="quote_title">javascript:
页: [1]
查看完整版本: jQuery & Greasemonkey