Skip to content

Instantly share code, notes, and snippets.

@arantius
Created August 28, 2012 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arantius/3497870 to your computer and use it in GitHub Desktop.
Save arantius/3497870 to your computer and use it in GitHub Desktop.
require jquery test
// ==UserScript==
// @name Greasemonkey and jQuery Test D
// @namespace http://arantius.com/misc/greasemonkey
// @include http://fiddle.jshell.net/Gc8HN/*/show/
// @include http://fiddle.jshell.net/_display/
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// ==/UserScript==
console.log('script, pre: ' + (typeof jQuery));
console.log('script, pre: ' + jQuery().jquery);
this.$ = this.jQuery = jQuery.noConflict(true);
console.log('script, post: ' + (typeof jQuery));
console.log('script, post: ' + jQuery().jquery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment